lib/views/base/index.js
function (data) {
    this.on("change:parent", this._onParent);

    // copy the data to this object. Note this shaves a TON
    // of time off initializing any view, especially list items if we
    // use this method over @setProperties data
    if (false) {
      for(var key in data) {
        this[key] = data[key];
      }
    }

    // necessary to properly dispose this view so it can be recycled
    if (this.parent) this._onParent(this.parent);
  }
function (data) {
    this.on("change:parent", this._onParent);

    // copy the data to this object. Note this shaves a TON
    // of time off initializing any view, especially list items if we
    // use this method over @setProperties data
    if (false) {
      for(var key in data) {
        this[key] = data[key];
      }
    }

    // necessary to properly dispose this view so it can be recycled
    if (this.parent) this._onParent(this.parent);
  }
function ( data ) { this . on ( "change:parent" , this . _onParent ) ; // copy the data to this object. Note this shaves a TON // of time off initializing any view, especially list items if we // use this method over @setProperties data if ( false ) { for ( var key in data ) { this [ key ] = data [ key ] ; } } // necessary to properly dispose this view so it can be recycled if ( this . parent ) this . _onParent ( this . parent ) ; }
Called when the view is instantiated
@method initialize
@param {Object} options options passed when creating the view
Called when the view is instantiated