From: jdeveloper Date: Tue, 19 Nov 2013 12:14:53 +0000 (+0100) Subject: Changed the signature of _kiwi.global.componets.ControlInput method in app.js back... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1cf35c11f0e9111345e09f9fd1ea462a9f0cfa56;p=KiwiIRC.git Changed the signature of _kiwi.global.componets.ControlInput method in app.js back to the original signature and changes the funcs map to make it work well --- diff --git a/client/src/app.js b/client/src/app.js index b750663..885684b 100644 --- a/client/src/app.js +++ b/client/src/app.js @@ -88,10 +88,10 @@ _kiwi.global = { ControlInput: function() { var obj = new this.EventComponent(_kiwi.app.controlbox); var funcs = { - processInput: 'run', addPluginIcon: 'addPluginIcon' + run: 'processInput', addPluginIcon: 'addPluginIcon' }; - _.each(funcs, function(func_name, controlbox_fn) { + _.each(funcs, function(controlbox_fn, func_name) { obj[func_name] = function() { var fn_name = controlbox_fn; return _kiwi.app.controlbox[fn_name].apply(_kiwi.app.controlbox, arguments);