Преглед изворни кода

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) {