소스 검색

Fixes #540. Remove deprecated way of initializing plugins.

Should already have been removed in the previous release.
JC Brand 9 년 전
부모
커밋
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)