From fceccf3e96004d93c289c7a574a50e70c2cd7e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Bonveh=C3=AD?= Date: Fri, 7 Nov 2014 15:57:28 -0300 Subject: [PATCH] Fix old roster.js missing route parameter on connect --- src/strophe.roster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {