diff options
author | John Resig <jeresig@gmail.com> | 2009-12-09 14:43:53 -0800 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-12-09 14:43:53 -0800 |
commit | 1052792bb23b56d25dcbacd3816c8b5a08bc9b72 (patch) | |
tree | 131224d9b8d49916e0f8e71fd6a22ecb5b841a4d /src | |
parent | 86bbf9cf87784cdd81ca79e4d809ef6f5879ef8b (diff) | |
download | jquery-1052792bb23b56d25dcbacd3816c8b5a08bc9b72.tar.gz jquery-1052792bb23b56d25dcbacd3816c8b5a08bc9b72.zip |
Fixed problems with removing live events. Fixes #4894.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/event.js b/src/event.js index ac45e7e16..e070cb261 100644 --- a/src/event.js +++ b/src/event.js @@ -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 " + |