X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent.js;h=c857bd21c08f04031e8cc98a506255285724471d;hb=3afc6533e2396ac1752dc8ce677823f6506dd8dd;hp=3e673d6b994d14017f669b2f125a560c63f808fc;hpb=9c1db29a066d693ccbef82f18c99933637a37e65;p=jquery.git diff --git a/src/event.js b/src/event.js index 3e673d6..c857bd2 100644 --- a/src/event.js +++ b/src/event.js @@ -126,7 +126,7 @@ jQuery.event = { types = types.type; } - // Handle multiple events seperated by a space + // Handle multiple events separated by a space // jQuery(...).unbind("mouseover mouseout", fn); types = types.split(/\s+/); var i = 0; @@ -135,7 +135,7 @@ jQuery.event = { var namespaces = type.split("."); type = namespaces.shift(); var all = !namespaces.length, - cleaned = jQuery.map( namespaces.slice(0).sort() , function(nm){ return nm.replace(/[^\w\s\.\|`]/g, function(ch){return "\\"+ch }) }), + cleaned = jQuery.map( namespaces.slice(0).sort() , function(nm){ return nm.replace(/[^\w\s\.\|`]/g, function(ch){return "\\"+ch; }); }), namespace = new RegExp("(^|\\.)" + cleaned.join("\\.(?:.*\\.)?") + "(\\.|$)"), special = this.special[ type ] || {};