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

Commit

Permalink
fix for tests in angular repo (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion authored and vikerman committed Jan 22, 2019
1 parent 9c04a3b commit fd069db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/register-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit fd069db

Please sign in to comment.