Procházet zdrojové kódy

Fix tests by allowing removeFromRoster to be spyable.

JC Brand před 10 roky
rodič
revize
e6f5b95da7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {