Browse Source

Bugfix. The stanza wasn't being passed into the handlers.

JC Brand 10 years ago
parent
commit
2e3eaa5d41
1 changed files with 2 additions and 2 deletions
  1. 2 2
      converse.js

+ 2 - 2
converse.js

@@ -1832,8 +1832,8 @@
                         from: converse.connection.jid,
                         type: "get"
                     }).c("query", {xmlns: Strophe.NS.DISCO_ITEMS}),
-                    $.proxy(function (iq) { this.onRoomsFound(); }, this),
-                    $.proxy(function (iq) { this.informNoRoomsFound(); }, this)
+                    this.onRoomsFound.bind(this),
+                    this.informNoRoomsFound.bind(this)
                 );
             },