diff --git a/converse.js b/converse.js index 7c5f36958..ca52edbed 100644 --- a/converse.js +++ b/converse.js @@ -5587,7 +5587,7 @@ if (key === 'events') { obj.prototype[key] = _.extend(value, obj.prototype[key]); } else { - if (typeof key === 'function') { + if (typeof value === 'function') { obj.prototype._super[key] = obj.prototype[key]; } obj.prototype[key] = value;