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

Commit 136e518

Browse files
committed
fix: bind prototype chain callback of custom element descriptor
1 parent 7b7258b commit 136e518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: zone.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ Zone.patchRegisterElement = function () {
589589
if (opts.prototype[callback]) {
590590
var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);
591591
if (descriptor.value) {
592-
descriptor.value = zone.bind(descriptor.value);
592+
descriptor.value = zone.bind(descriptor.value || opts.prototype[callback]);
593593
Zone._redefineProperty(opts.prototype, callback, descriptor);
594594
}
595595
}

0 commit comments

Comments
 (0)