Sfoglia il codice sorgente

Merge pull request #356 from floriancargoet/fix/plugins

Fix the plugin extend function
JC Brand 10 anni fa
parent
commit
aa0e6846a1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;