Bugfix. Need to set the context when calling a _super method

This commit is contained in:
JC Brand 2016-03-09 08:39:04 +00:00
parent c793b846fb
commit 2dbe2fc5a3
2 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@
getOldestMaximizedChat: function (exclude_ids) {
exclude_ids.push('controlbox');
this._super.getOldestMaximizedChat(exclude_ids);
this._super.getOldestMaximizedChat.apply(this, arguments);
},
getChatBoxWidth: function (view) {

View File

@ -3098,7 +3098,7 @@
if (typeof value === "function") {
var wrapped_function = _.partial(
converse.wrappedOverride.bind(converse),
key, value, converse[key].bind(converse), true
key, value, converse[key].bind(converse), true
);
converse[key] = wrapped_function;
} else {
@ -3122,7 +3122,7 @@
// original method.
var wrapped_function = _.partial(
converse.wrappedOverride,
key, value, obj.prototype[key], false
key, value, obj.prototype[key], false
);
obj.prototype[key] = wrapped_function;
} else {