From e6f5b95da7cdccce2156de149555898d312d25d1 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 10 Apr 2015 13:04:00 +0200 Subject: [PATCH] Fix tests by allowing removeFromRoster to be spyable. --- converse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/converse.js b/converse.js index 0564a8779..27f64a9bb 100644 --- a/converse.js +++ b/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) {