Explorar o código

Fix tests by allowing removeFromRoster to be spyable.

JC Brand %!s(int64=10) %!d(string=hai) anos
pai
achega
e6f5b95da7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {