From a4652d67a04e312f0157200e84aaa8434897ff0b Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 15 Jul 2021 18:10:52 -0400 Subject: [PATCH] pad_editbar: Move `commands` up for readability --- src/static/js/pad_editbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index e973dc080..ea684283e 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -124,6 +124,7 @@ const syncAnimation = (() => { exports.padeditbar = { _editbarPosition: 0, + commands: {}, dropdowns: [], init() { @@ -175,7 +176,6 @@ exports.padeditbar = { enable: () => { $('#editbar').addClass('enabledtoolbar').removeClass('disabledtoolbar'); }, - commands: {}, registerCommand(cmd, callback) { this.commands[cmd] = callback; return this;