Fix: self -> _

This commit is contained in:
eight 2017-09-12 19:45:08 +08:00
parent 7612cd3614
commit 02c61b9276

View File

@ -1349,8 +1349,8 @@ function init() {
return Promise.resolve(); return Promise.resolve();
} }
return new Promise(resolve => { return new Promise(resolve => {
window.addEventListener('load', function self() { window.addEventListener('load', function _() {
window.removeEventListener('load', self); window.removeEventListener('load', _);
resolve(); resolve();
}); });
}); });