pad_editbar: Move `commands` up for readability

pull/5152/head
Richard Hansen 2021-07-15 18:10:52 -04:00
parent fda34407f9
commit a4652d67a0
1 changed files with 1 additions and 1 deletions

View File

@ -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;