Commit 75bb2d6e authored by jeresig's avatar jeresig

Fix in logic for handling exclusive namespace testing. Fixes #6048.

parent d7438999
...@@ -362,7 +362,7 @@ jQuery.event = { ...@@ -362,7 +362,7 @@ jQuery.event = {
event.currentTarget = this; event.currentTarget = this;
// Namespaced event handlers // Namespaced event handlers
all = event.type.indexOf(".") < 0; all = event.type.indexOf(".") < 0 && !event.exclusive;
if ( !all ) { if ( !all ) {
namespaces = event.type.split("."); namespaces = event.type.split(".");
...@@ -380,7 +380,7 @@ jQuery.event = { ...@@ -380,7 +380,7 @@ jQuery.event = {
var handleObj = handlers[ j ]; var handleObj = handlers[ j ];
// Filter the functions by class // 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 // Pass in a reference to the handler function itself
// So that we can later remove it // So that we can later remove it
event.handler = handleObj.handler; event.handler = handleObj.handler;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment