function (elem)
    {
        if (elem === null) { return ; }
        if (typeof(elem.sort) === "function") {
            for (var i = 0; i < elem.length; i++) {
                this._queueData(elem[i]);
            }
        } else if (typeof(elem.tree) === "function") {
            this._queueData(elem.tree());
        } else {
            this._queueData(elem);
        }

        this._proto._send();
    }
function (elem)
    {
        if (elem === null) { return ; }
        if (typeof(elem.sort) === "function") {
            for (var i = 0; i < elem.length; i++) {
                this._queueData(elem[i]);
            }
        } else if (typeof(elem.tree) === "function") {
            this._queueData(elem.tree());
        } else {
            this._queueData(elem);
        }

        this._proto._send();
    }
function ( elem ) { if ( elem === null ) { return ; } if ( typeof ( elem . sort ) === "function" ) { for ( var i = 0 ; i < elem . length ; i ++ ) { this . _queueData ( elem [ i ] ) ; } } else if ( typeof ( elem . tree ) === "function" ) { this . _queueData ( elem . tree ( ) ) ; } else { this . _queueData ( elem ) ; } this . _proto . _send ( ) ; }
/* jshint unused:true Function: send
Send a stanza.

This function is called to push data onto the send queue to
go out over the wire.  Whenever a request is sent to the BOSH
server, all pending data is sent and the queue is flushed.

Parameters:
(XMLElement |
[XMLElement] |
Strophe.Builder) elem - The stanza to send.
/ * jshint unused : true Function : send Send a stanza .
An array of data to send to the peer