Make cached rspaces regex definitions consistent. Fixes #9008
This commit is contained in:
parent
632cd6c4ba
commit
57f56be04f
2 changed files with 5 additions and 5 deletions
|
@ -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 " +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue