diff options
author | jeresig <jeresig@gmail.com> | 2010-02-08 11:31:01 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-02-08 11:31:01 -0500 |
commit | 75bb2d6e510a3c048a42ce673e9655fa779eacd5 (patch) | |
tree | 08653f41cb45901aba9bfd81a0e230ecc9b1fb21 /src/event.js | |
parent | d74389997106b02cf513f573a0d7197ecc511514 (diff) | |
download | jquery-75bb2d6e510a3c048a42ce673e9655fa779eacd5.tar.gz jquery-75bb2d6e510a3c048a42ce673e9655fa779eacd5.zip |
Fix in logic for handling exclusive namespace testing. Fixes #6048.
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index 821ea0e48..2fda80254 100644 --- a/src/event.js +++ b/src/event.js @@ -362,7 +362,7 @@ jQuery.event = { event.currentTarget = this; // Namespaced event handlers - all = event.type.indexOf(".") < 0; + all = event.type.indexOf(".") < 0 && !event.exclusive; if ( !all ) { namespaces = event.type.split("."); @@ -380,7 +380,7 @@ jQuery.event = { var handleObj = handlers[ j ]; // Filter the functions by class - if ( (all && !event.exclusive) || namespace.test( handleObj.namespace ) ) { + if ( all || namespace.test( handleObj.namespace ) ) { // Pass in a reference to the handler function itself // So that we can later remove it event.handler = handleObj.handler; |