From 2d353f25a69ef3c14565b49700d42ef6a0cea8d7 Mon Sep 17 00:00:00 2001 From: JiaLiPassion Date: Sat, 19 Jan 2019 17:25:03 +0900 Subject: [PATCH] temp fix for test --- lib/browser/register-element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/register-element.ts b/lib/browser/register-element.ts index f590f0c60..23fd30d4e 100644 --- a/lib/browser/register-element.ts +++ b/lib/browser/register-element.ts @@ -26,7 +26,7 @@ function patchCallbacks(target: any, targetName: string, method: string, callbac if (descriptor && descriptor.value) { descriptor.value = wrapWithCurrentZone(descriptor.value, source); _redefineProperty(opts.prototype, callback, descriptor); - } else { + } else if (prototype[callback]) { prototype[callback] = wrapWithCurrentZone(prototype[callback], source); } } else if (prototype[callback]) {