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

Commit a9ec393

Browse files
committed
Merge branch 'master' into reenable-typescript
2 parents da8dd80 + 46801d6 commit a9ec393

File tree

5 files changed

+196
-11
lines changed

5 files changed

+196
-11
lines changed

custom-elements.min.js

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

custom-elements.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/CustomElementRegistry.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ export default class CustomElementRegistry {
131131
}
132132
}
133133

134+
upgrade(element) {
135+
this._internals.patchAndUpgradeTree(element);
136+
}
137+
134138
_flush() {
135139
// If no new definitions were defined, don't attempt to flush. This could
136140
// happen if a flush callback keeps the function it is given and calls it
@@ -252,6 +256,7 @@ export default class CustomElementRegistry {
252256
// Closure compiler exports.
253257
window['CustomElementRegistry'] = CustomElementRegistry;
254258
CustomElementRegistry.prototype['define'] = CustomElementRegistry.prototype.define;
259+
CustomElementRegistry.prototype['upgrade'] = CustomElementRegistry.prototype.upgrade;
255260
CustomElementRegistry.prototype['get'] = CustomElementRegistry.prototype.get;
256261
CustomElementRegistry.prototype['whenDefined'] = CustomElementRegistry.prototype.whenDefined;
257262
CustomElementRegistry.prototype['polyfillWrapFlushCallback'] = CustomElementRegistry.prototype.polyfillWrapFlushCallback;

0 commit comments

Comments
 (0)