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

Fixes #540. Remove deprecated way of initializing plugins.

Should already have been removed in the previous release.
JC Brand 9 жил өмнө
parent
commit
9d7b41cd96
2 өөрчлөгдсөн 1 нэмэгдсэн , 3 устгасан
  1. 0 3
      converse.js
  2. 1 0
      docs/CHANGES.md

+ 0 - 3
converse.js

@@ -6347,9 +6347,6 @@
 
                 if (typeof plugin.initialize === "function") {
                     plugin.initialize.bind(plugin)(this);
-                } else {
-                    // This will be deprecated in 0.10
-                    plugin.bind(this)(this);
                 }
             }.bind(this));
         };

+ 1 - 0
docs/CHANGES.md

@@ -5,6 +5,7 @@
 - #524 Added `auto_join_on_invite` parameter for automatically joining chatrooms. [ben]
 - #521 Not sending presence when connecting after disconnection. [jcbrand]
 - #536 Presence not sent out (in cases where it should) after page refresh. [jcbrand]
+- #540 `bind is not a function` error for plugins without `initialize` method. [jcbrand]
 - A chatroom invite might come from someone not in your roster list. [ben]
 
 ## 0.10.0 (2015-11-05)