diff options
Diffstat (limited to 'overrides')
-rw-r--r-- | overrides/Endless.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/overrides/Endless.js b/overrides/Endless.js index 8fadd94..59e55ac 100644 --- a/overrides/Endless.js +++ b/overrides/Endless.js @@ -20,11 +20,11 @@ function _init() { // GtkAction from the developer, as that will be deprecated in the future. Endless.ActionMenu.prototype._add_action_real = Endless.ActionMenu.prototype.add_action; Endless.ActionMenu.prototype.add_action = function(dict, callback) { - let action = new Gtk.Action(dict); - this._add_action_real(action); + let action = new Gtk.Action(dict); + this._add_action_real(action); - if (typeof callback === "function") { - action.connect('activate', callback); - } + if (typeof callback === "function") { + action.connect('activate', callback); + } } } |