Fixed problems with removing live events. Fixes #4894.
This commit is contained in:
parent
86bbf9cf87
commit
1052792bb2
2 changed files with 39 additions and 4 deletions
|
@ -872,9 +872,7 @@ function liveHandler( event ) {
|
|||
}
|
||||
|
||||
function liveConvert( type, selector ) {
|
||||
return ["live", type, selector//.replace(/[^\w\s\.]/g, function(ch){ return "\\"+ch})
|
||||
.replace(/\./g, "`")
|
||||
.replace(/ /g, "|")].join(".");
|
||||
return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "&")].join(".");
|
||||
}
|
||||
|
||||
jQuery.each( ("blur focus load resize scroll unload click dblclick " +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue