Browse Source

Fix tests by allowing removeFromRoster to be spyable.

JC Brand 10 years ago
parent
commit
e6f5b95da7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      converse.js

+ 1 - 1
converse.js

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