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

Commit

Permalink
fix: bind prototype chain callback of custom element descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
btford committed Jun 6, 2014
1 parent 7b7258b commit 136e518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ Zone.patchRegisterElement = function () {
if (opts.prototype[callback]) {
var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);
if (descriptor.value) {
descriptor.value = zone.bind(descriptor.value);
descriptor.value = zone.bind(descriptor.value || opts.prototype[callback]);
Zone._redefineProperty(opts.prototype, callback, descriptor);
}
}
Expand Down

0 comments on commit 136e518

Please sign in to comment.