Commit 6260ba28 authored by JC Brand's avatar JC Brand

Bugfix. Don't overwrite _super every time an override is made.

parent ea687d67
......@@ -5608,7 +5608,9 @@
// See converse.plugins.override
var value = plugin.overrides[key];
if (typeof value === "function") {
plugin._super = {'converse': converse};
if (typeof plugin._super === "undefined") {
plugin._super = {'converse': converse};
}
plugin._super[key] = converse[key].bind(converse);
converse[key] = value.bind(plugin);
} else {
......
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