Selaa lähdekoodia

Fix the plugin extend function

Florian Cargoët 10 vuotta sitten
vanhempi
commit
06c3304d0d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      converse.js

+ 1 - 1
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;