pad_editbar: Move commands up for readability

This commit is contained in:
Richard Hansen 2021-07-15 18:10:52 -04:00
parent fda34407f9
commit a4652d67a0

View file

@ -124,6 +124,7 @@ const syncAnimation = (() => {
exports.padeditbar = { exports.padeditbar = {
_editbarPosition: 0, _editbarPosition: 0,
commands: {},
dropdowns: [], dropdowns: [],
init() { init() {
@ -175,7 +176,6 @@ exports.padeditbar = {
enable: () => { enable: () => {
$('#editbar').addClass('enabledtoolbar').removeClass('disabledtoolbar'); $('#editbar').addClass('enabledtoolbar').removeClass('disabledtoolbar');
}, },
commands: {},
registerCommand(cmd, callback) { registerCommand(cmd, callback) {
this.commands[cmd] = callback; this.commands[cmd] = callback;
return this; return this;