diff options
Diffstat (limited to 'program/js/common.js')
-rw-r--r-- | program/js/common.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/js/common.js b/program/js/common.js index 14091463f..9c0bb9db3 100644 --- a/program/js/common.js +++ b/program/js/common.js @@ -285,7 +285,6 @@ rcube_event_engine.prototype = { * * @param {String} Event name * @param {Function} Handler function - * @return Listener ID (used to remove this handler later on) */ addEventListener: function(evt, func, obj) { @@ -295,6 +294,8 @@ addEventListener: function(evt, func, obj) this._events[evt] = []; this._events[evt].push({func:func, obj:obj ? obj : window}); + + return this; // chainable }, /** |