Fix old roster.js missing route parameter on connect

This commit is contained in:
Guillermo Bonvehí 2014-11-07 15:57:28 -03:00
parent 95cbac27b0
commit fceccf3e96

View File

@ -72,7 +72,7 @@ Strophe.addConnectionPlugin('roster',
oldCallback.apply(this, arguments);
}
};
conn.connect = function(jid, pass, callback, wait, hold)
conn.connect = function(jid, pass, callback, wait, hold, route)
{
oldCallback = callback;
if (typeof jid == "undefined")
@ -80,7 +80,7 @@ Strophe.addConnectionPlugin('roster',
if (typeof pass == "undefined")
pass = null;
callback = newCallback;
_connect.apply(conn, [jid, pass, callback, wait, hold]);
_connect.apply(conn, [jid, pass, callback, wait, hold, route]);
};
conn.attach = function(jid, sid, rid, callback, wait, hold, wind)
{