소스 검색

Fix tests by allowing removeFromRoster to be spyable.

JC Brand 10 년 전
부모
커밋
e6f5b95da7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -3484,7 +3484,7 @@
                     'status': ''
                 }, attributes));
 
-                this.on('destroy', this.removeFromRoster, this);
+                this.on('destroy', function () { this.removeFromRoster(); }.bind(this));
             },
 
            subscribe: function (message) {