mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
pad_editbar: Move syncAnimation
out of padeditbar
IIFE
This avoids the need for an IIFE.
This commit is contained in:
parent
ee996f530f
commit
42b0b1bf00
1 changed files with 395 additions and 400 deletions
|
@ -77,9 +77,7 @@ ToolbarItem.prototype.bind = function (callback) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const syncAnimation = (() => {
|
||||||
const padeditbar = (() => {
|
|
||||||
const syncAnimation = (() => {
|
|
||||||
const SYNCING = -100;
|
const SYNCING = -100;
|
||||||
const DONE = 100;
|
const DONE = 100;
|
||||||
let state = DONE;
|
let state = DONE;
|
||||||
|
@ -122,9 +120,9 @@ const padeditbar = (() => {
|
||||||
animator.scheduleAnimation();
|
animator.scheduleAnimation();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
return {
|
exports.padeditbar = {
|
||||||
_editbarPosition: 0,
|
_editbarPosition: 0,
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
@ -481,7 +479,4 @@ const padeditbar = (() => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
})();
|
|
||||||
|
|
||||||
exports.padeditbar = padeditbar;
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue