Преглед на файлове

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