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

This commit is contained in:
JC Brand 2015-05-16 16:27:51 +02:00
parent ea687d67f9
commit 6260ba2864

View File

@ -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 {