index.js
function queue(name, parent, data) {
    this.length--;

    //
    // Object was queued, transform the response type to application/json.
    //
    if ('object' === typeof data && this._contentType !== contentTypes.json) {
      this.emit('contentType', 'json');
    }

    this._queue.push({
      parent: parent,
      name: name,
      view: data
    });

    return this;
  }
function queue(name, parent, data) {
    this.length--;

    //
    // Object was queued, transform the response type to application/json.
    //
    if ('object' === typeof data && this._contentType !== contentTypes.json) {
      this.emit('contentType', 'json');
    }

    this._queue.push({
      parent: parent,
      name: name,
      view: data
    });

    return this;
  }
function queue ( name , parent , data ) { this . length -- ; // // Object was queued, transform the response type to application/json. // if ( 'object' === typeof data && this . _contentType !== contentTypes . json ) { this . emit ( 'contentType' , 'json' ) ; } this . _queue . push ( { parent : parent , name : name , view : data } ) ; return this ; }
Add fragment of data to the queue.

@param {String} name Pagelet name that queued the content.
@param {String} parent Pagelet parent that queued the content.
@param {Mixed} data Output to be send to the response
@returns {Pagelet} this
@api public
Add fragment of data to the queue .