pad_editbar: Move `syncAnimation` out of `padeditbar` IIFE

This avoids the need for an IIFE.
pull/5152/head
Richard Hansen 2021-07-15 17:30:51 -04:00
parent ee996f530f
commit 42b0b1bf00
1 changed files with 395 additions and 400 deletions

View File

@ -77,9 +77,7 @@ ToolbarItem.prototype.bind = function (callback) {
}
};
const padeditbar = (() => {
const syncAnimation = (() => {
const syncAnimation = (() => {
const SYNCING = -100;
const DONE = 100;
let state = DONE;
@ -122,9 +120,9 @@ const padeditbar = (() => {
animator.scheduleAnimation();
},
};
})();
})();
return {
exports.padeditbar = {
_editbarPosition: 0,
init() {
@ -481,7 +479,4 @@ const padeditbar = (() => {
}
});
},
};
})();
exports.padeditbar = padeditbar;
};