pad_editbar: Move `syncAnimation` out of `padeditbar` IIFE
This avoids the need for an IIFE.pull/5152/head
parent
ee996f530f
commit
42b0b1bf00
|
@ -77,8 +77,6 @@ ToolbarItem.prototype.bind = function (callback) {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
const padeditbar = (() => {
|
||||
const syncAnimation = (() => {
|
||||
const SYNCING = -100;
|
||||
const DONE = 100;
|
||||
|
@ -124,7 +122,7 @@ const padeditbar = (() => {
|
|||
};
|
||||
})();
|
||||
|
||||
return {
|
||||
exports.padeditbar = {
|
||||
_editbarPosition: 0,
|
||||
|
||||
init() {
|
||||
|
@ -482,6 +480,3 @@ const padeditbar = (() => {
|
|||
});
|
||||
},
|
||||
};
|
||||
})();
|
||||
|
||||
exports.padeditbar = padeditbar;
|
||||
|
|
Loading…
Reference in New Issue