2
0
Эх сурвалжийг харах

Merge pull request #356 from floriancargoet/fix/plugins

Fix the plugin extend function
JC Brand 10 жил өмнө
parent
commit
aa0e6846a1
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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;