mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
fix let
This commit is contained in:
@@ -21,13 +21,13 @@
|
||||
var flushCallback;
|
||||
var runAndClearCallback = function runAndClearCallback() {
|
||||
if (flushCallback) {
|
||||
let cb = flushCallback;
|
||||
var cb = flushCallback;
|
||||
flushCallback = null;
|
||||
cb();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
let origWhenReady = HTMLImports['whenReady'];
|
||||
var origWhenReady = HTMLImports['whenReady'];
|
||||
customElements['polyfillWrapFlushCallback'](function(cb) {
|
||||
flushCallback = cb;
|
||||
origWhenReady(runAndClearCallback);
|
||||
|
||||
Reference in New Issue
Block a user