Fixed problems with removing live events. Fixes #4894.

This commit is contained in:
John Resig 2009-12-09 14:43:53 -08:00
parent 86bbf9cf87
commit 1052792bb2
2 changed files with 39 additions and 4 deletions

View file

@ -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 " +