Commit 2dbe2fc5 authored by JC Brand's avatar JC Brand

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

parent c793b846
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
getOldestMaximizedChat: function (exclude_ids) { getOldestMaximizedChat: function (exclude_ids) {
exclude_ids.push('controlbox'); exclude_ids.push('controlbox');
this._super.getOldestMaximizedChat(exclude_ids); this._super.getOldestMaximizedChat.apply(this, arguments);
}, },
getChatBoxWidth: function (view) { getChatBoxWidth: function (view) {
......
...@@ -3098,7 +3098,7 @@ ...@@ -3098,7 +3098,7 @@
if (typeof value === "function") { if (typeof value === "function") {
var wrapped_function = _.partial( var wrapped_function = _.partial(
converse.wrappedOverride.bind(converse), converse.wrappedOverride.bind(converse),
key, value, converse[key].bind(converse), true key, value, converse[key].bind(converse), true
); );
converse[key] = wrapped_function; converse[key] = wrapped_function;
} else { } else {
...@@ -3122,7 +3122,7 @@ ...@@ -3122,7 +3122,7 @@
// original method. // original method.
var wrapped_function = _.partial( var wrapped_function = _.partial(
converse.wrappedOverride, converse.wrappedOverride,
key, value, obj.prototype[key], false key, value, obj.prototype[key], false
); );
obj.prototype[key] = wrapped_function; obj.prototype[key] = wrapped_function;
} else { } 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