Commit 42437ffa authored by JC Brand's avatar JC Brand

Bind overridden methods to the plugin context

parent 91638cab
......@@ -5614,7 +5614,7 @@
if (typeof value === "function") {
plugin._super = {'converse': converse};
plugin._super[key] = converse[key].bind(converse);
converse[key] = value.bind(this);
converse[key] = value.bind(plugin);
} else {
converse[key] = value;
}
......
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