mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
Remove stub of HTMLImports as this makes any test for whenReady that does window.HTMLImports && HTMLImports.whenReady fail. [Note: this may require an update to WCT.]
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
}
|
||||
|
||||
// NOTE: we stub HTMLImports to enable WCT to wait for "WebComponentsReady" event.
|
||||
window['HTMLImports'] = {};
|
||||
if (polyfills.length) {
|
||||
var script = document.querySelector('script[src*="' + name +'"]');
|
||||
var newScript = document.createElement('script');
|
||||
@@ -56,7 +55,6 @@
|
||||
var fire = function() {
|
||||
requestAnimationFrame(function() {
|
||||
// Reset the HTMLImports stub.
|
||||
window['HTMLImports'] = null;
|
||||
document.dispatchEvent(new CustomEvent('WebComponentsReady', {bubbles: true}));
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user