Aleksander Machniak
2014-07-07 aa13b46714a136249dc7445ad8a0b69aa14eea51
Pass event object as 3rd argument to external command handlers
1 files modified
4 ■■■■ changed files
program/js/app.js 4 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -664,11 +664,11 @@
    // process external commands
    if (typeof this.command_handlers[command] === 'function') {
      ret = this.command_handlers[command](props, obj);
      ret = this.command_handlers[command](props, obj, event);
      return ret !== undefined ? ret : (obj ? false : true);
    }
    else if (typeof this.command_handlers[command] === 'string') {
      ret = window[this.command_handlers[command]](props, obj);
      ret = window[this.command_handlers[command]](props, obj, event);
      return ret !== undefined ? ret : (obj ? false : true);
    }