From ee996f530f3f235ae6fd09d7e4ffb6c3d2295385 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 15 Jul 2021 17:29:51 -0400 Subject: [PATCH] pad_editbar: Remove unnecessary `syncAnimationFn` variable --- src/static/js/pad_editbar.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index 207035172..da9813106 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -79,7 +79,7 @@ ToolbarItem.prototype.bind = function (callback) { const padeditbar = (() => { - const syncAnimationFn = () => { + const syncAnimation = (() => { const SYNCING = -100; const DONE = 100; let state = DONE; @@ -122,8 +122,7 @@ const padeditbar = (() => { animator.scheduleAnimation(); }, }; - }; - const syncAnimation = syncAnimationFn(); + })(); return { _editbarPosition: 0,