From 06c3304d0d8a28164f3183ea903b46a438295f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Cargo=C3=ABt?= Date: Wed, 1 Apr 2015 14:59:13 +0200 Subject: [PATCH] Fix the plugin extend function --- converse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;