aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2011-04-28 14:11:34 -0400
committertimmywil <tim.willison@thisismedium.com>2011-04-28 16:06:13 -0400
commit57f56be04f18f25fbf313973c1d8ce685fa05d3e (patch)
tree4baeac6338c917c87a97a7ca2ec3a5b47c61fd7e /src/event.js
parent632cd6c4ba625ed1586b5c09140614ee3eef867f (diff)
downloadjquery-57f56be04f18f25fbf313973c1d8ce685fa05d3e.tar.gz
jquery-57f56be04f18f25fbf313973c1d8ce685fa05d3e.zip
Make cached rspaces regex definitions consistent. Fixes #9008
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index 0f09241c9..09ea02e75 100644
--- a/src/event.js
+++ b/src/event.js
@@ -4,7 +4,7 @@ var hasOwn = Object.prototype.hasOwnProperty,
rnamespaces = /\.(.*)$/,
rformElems = /^(?:textarea|input|select)$/i,
rperiod = /\./g,
- rspace = / /g,
+ rspaces = /\s+/,
rescape = /[^\w\s.|`]/g,
fcleanup = function( nm ) {
return nm.replace(rescape, "\\$&");
@@ -1177,7 +1177,7 @@ function liveHandler( event ) {
}
function liveConvert( type, selector ) {
- return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspace, "&");
+ return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspaces, "&");
}
jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +