diff --git a/src/strophe.roster.js b/src/strophe.roster.js index 79182d118..b3a6f5aeb 100644 --- a/src/strophe.roster.js +++ b/src/strophe.roster.js @@ -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) {