Skip to content

Commit

Permalink
plugins dont need to use arguments interface to communicate to strophe
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo committed Nov 13, 2011
1 parent 2db8ce2 commit f359cf6
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/core.js
Expand Up @@ -1594,16 +1594,8 @@ Strophe.Connection.prototype = {
* (Integer) hold - The optional HTTPBIND hold value. This is the
* number of connections the server will hold at one time. This
* should almost always be set to 1 (the default).
* (Boolean) authentication - The optional trigger for authentication
* process. When set to false a successful connection request will
* skip the authention process. The authentication process can
* triggered manually by the 'authenticate' method.
* (Function) _connect_cb - low level (xmpp) connect callback function.
* Useful for plugins with their own xmpp connect callback (when their)
* want to do something special).
*/
connect: function (jid, pass, callback, wait, hold,
authentication, _connect_cb)
connect: function (jid, pass, callback, wait, hold)
{
this.jid = jid;
this.pass = pass;
Expand All @@ -1615,7 +1607,6 @@ Strophe.Connection.prototype = {

this.wait = wait || this.wait;
this.hold = hold || this.hold;
this.do_authentication = authentication;

// parse jid for domain and resource
this.domain = this.domain || Strophe.getDomainFromJid(this.jid);
Expand All @@ -1634,7 +1625,9 @@ Strophe.Connection.prototype = {

this._changeConnectStatus(Strophe.Status.CONNECTING, null);

_connect_cb = _connect_cb || this._connect_cb;
var _connect_cb = this._connect_callback || this._connect_cb;
this._connect_callback = null;

this._requests.push(
new Strophe.Request(body.tree(),
this._onRequestStateChange.bind(
Expand Down

0 comments on commit f359cf6

Please sign in to comment.