Skip to content

Commit 307dda2

Browse files
author
Allan Simon
committed
fix a bug in strophe.roster plugin, it would have broken the connect function if we were needing a 'route' parameter in our connect function, as the plugin is overriding the connect function, but was not handling that 'route' parameter
1 parent 6404c4d commit 307dda2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

roster/strophe.roster.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ Strophe.addConnectionPlugin('roster',
7171
if (oldCallback !== null)
7272
oldCallback.apply(this, arguments);
7373
};
74-
conn.connect = function(jid, pass, callback, wait, hold)
74+
conn.connect = function(jid, pass, callback, wait, hold, route)
7575
{
7676
oldCallback = callback;
7777
if (typeof jid == "undefined")
7878
jid = null;
7979
if (typeof pass == "undefined")
8080
pass = null;
8181
callback = newCallback;
82-
_connect.apply(conn, [jid, pass, callback, wait, hold]);
82+
_connect.apply(conn, [jid, pass, callback, wait, hold, route]);
8383
};
8484
conn.attach = function(jid, sid, rid, callback, wait, hold, wind)
8585
{

0 commit comments

Comments
 (0)