Commit 5efb7fbf authored by JC Brand's avatar JC Brand

Fixes #806 Event listeners not triggered.

Functions need to be bound.
parent f1bf5a96
......@@ -2,6 +2,7 @@
## 3.0.1 (Unreleased)
- #806 The `_converse.listen` API event listeners aren't triggered. [jcbrand]
- #807 Error: Plugin "converse-dragresize" tried to override HeadlinesBoxView but it's not found. [jcbrand]
## 3.0.0 (2017-03-05)
......
......@@ -2208,9 +2208,9 @@
}
},
'listen': {
'once': _converse.once,
'on': _converse.on,
'not': _converse.off,
'once': _converse.once.bind(_converse),
'on': _converse.on.bind(_converse),
'not': _converse.off.bind(_converse),
'stanza': function (name, options, handler) {
if (_.isFunction(options)) {
handler = options;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment