Browse Source

Fix tests by allowing removeFromRoster to be spyable.

JC Brand 10 năm trước cách đây
mục cha
commit
e6f5b95da7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {