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

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

JC Brand преди 10 години
родител
ревизия
2e3eaa5d41
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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)
                 );
             },