From dcbffb661212340c4dd882d2b07619ac144fffee Mon Sep 17 00:00:00 2001 From: "JiaLi.Passion" Date: Thu, 16 Nov 2017 11:20:56 +0900 Subject: [PATCH] fix(core): handle hybrid Event.prototype.stopImmediatePropagation --- lib/common/events.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/common/events.ts b/lib/common/events.ts index 934a4c8a2..74a497493 100644 --- a/lib/common/events.ts +++ b/lib/common/events.ts @@ -595,6 +595,10 @@ export function patchEventPrototype(global: any, api: _ZonePrivate) { Event.prototype, 'stopImmediatePropagation', (delegate: Function) => function(self: any, args: any[]) { self[IMMEDIATE_PROPAGATION_SYMBOL] = true; + // we need to call the native stopImmediatePropagation + // in case in some hybrid application, some part of + // application will be controlled by zone, some are not + delegate && delegate.apply(self, args); }); } }