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

Commit 18f5511

Browse files
committed
fix: minor fixes
1 parent 3122a48 commit 18f5511

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

dist/zone-microtask.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,19 +1703,21 @@ function apply() {
17031703
if (!('registerElement' in global.document)) {
17041704
return;
17051705
}
1706+
17061707
var _registerElement = document.registerElement;
17071708
var callbacks = [
17081709
'createdCallback',
17091710
'attachedCallback',
17101711
'detachedCallback',
17111712
'attributeChangedCallback'
17121713
];
1714+
17131715
document.registerElement = function (name, opts) {
17141716
callbacks.forEach(function (callback) {
17151717
if (opts.prototype[callback]) {
17161718
var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);
17171719
if (descriptor.value) {
1718-
descriptor.value = zone.bind(descriptor.value || opts.prototype[callback]);
1720+
descriptor.value = global.zone.bind(descriptor.value || opts.prototype[callback]);
17191721
_redefineProperty(opts.prototype, callback, descriptor);
17201722
}
17211723
}

0 commit comments

Comments
 (0)