Bugfix. Don't overwrite _super every time an override is made.
This commit is contained in:
parent
ea687d67f9
commit
6260ba2864
@ -5608,7 +5608,9 @@
|
|||||||
// See converse.plugins.override
|
// See converse.plugins.override
|
||||||
var value = plugin.overrides[key];
|
var value = plugin.overrides[key];
|
||||||
if (typeof value === "function") {
|
if (typeof value === "function") {
|
||||||
|
if (typeof plugin._super === "undefined") {
|
||||||
plugin._super = {'converse': converse};
|
plugin._super = {'converse': converse};
|
||||||
|
}
|
||||||
plugin._super[key] = converse[key].bind(converse);
|
plugin._super[key] = converse[key].bind(converse);
|
||||||
converse[key] = value.bind(plugin);
|
converse[key] = value.bind(plugin);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user