From 4c68d107b5054fcc37c689ada05c4099e3b6901d Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Wed, 5 Mar 2014 22:46:23 -0500 Subject: Event: Call underlying stopImmediatePropagation when present Fixes #13997 (cherry picked from commit 6a89db86ed817f6a7498076e2a06b90f9fce0831) --- src/event.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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(); } }; -- cgit v1.2.3