pad_editbar: Move syncAnimation out of padeditbar IIFE

This avoids the need for an IIFE.
This commit is contained in:
Richard Hansen 2021-07-15 17:30:51 -04:00
parent ee996f530f
commit 42b0b1bf00

View file

@ -77,8 +77,6 @@ ToolbarItem.prototype.bind = function (callback) {
} }
}; };
const padeditbar = (() => {
const syncAnimation = (() => { const syncAnimation = (() => {
const SYNCING = -100; const SYNCING = -100;
const DONE = 100; const DONE = 100;
@ -124,7 +122,7 @@ const padeditbar = (() => {
}; };
})(); })();
return { exports.padeditbar = {
_editbarPosition: 0, _editbarPosition: 0,
init() { init() {
@ -482,6 +480,3 @@ const padeditbar = (() => {
}); });
}, },
}; };
})();
exports.padeditbar = padeditbar;