Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit fd069db

Browse files
JiaLiPassionvikerman
authored andcommitted
fix for tests in angular repo (#1179)
1 parent 9c04a3b commit fd069db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/browser/register-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function patchCallbacks(target: any, targetName: string, method: string, callbac
2626
if (descriptor && descriptor.value) {
2727
descriptor.value = wrapWithCurrentZone(descriptor.value, source);
2828
_redefineProperty(opts.prototype, callback, descriptor);
29-
} else {
29+
} else if (prototype[callback]) {
3030
prototype[callback] = wrapWithCurrentZone(prototype[callback], source);
3131
}
3232
} else if (prototype[callback]) {

0 commit comments

Comments
 (0)