diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2014-03-05 22:46:23 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-12 21:45:50 -0400 |
commit | 4c68d107b5054fcc37c689ada05c4099e3b6901d (patch) | |
tree | 6855e8100fc660b56309c359d811b6bb1bc34d9d /src | |
parent | 725cdebd3949ca98d4180897df5ddfd8ef58305b (diff) | |
download | jquery-4c68d107b5054fcc37c689ada05c4099e3b6901d.tar.gz jquery-4c68d107b5054fcc37c689ada05c4099e3b6901d.zip |
Event: Call underlying stopImmediatePropagation when present
Fixes #13997
(cherry picked from commit 6a89db86ed817f6a7498076e2a06b90f9fce0831)
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js index e2bac6f9b..a15cf6d45 100644 --- a/src/event.js +++ b/src/event.js @@ -751,7 +751,14 @@ jQuery.Event.prototype = { e.cancelBubble = true; }, stopImmediatePropagation: function() { + var e = this.originalEvent; + this.isImmediatePropagationStopped = returnTrue; + + if ( e && e.stopImmediatePropagation ) { + e.stopImmediatePropagation(); + } + this.stopPropagation(); } }; |