pad_editbar: Move `commands` up for readability
parent
fda34407f9
commit
a4652d67a0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue