Fix in logic for handling exclusive namespace testing. Fixes #6048.
This commit is contained in:
parent
d743899971
commit
75bb2d6e51
1 changed files with 2 additions and 2 deletions
|
@ -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 = {
|
||||||
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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue