lib/views/base/index.js
function BaseView (properties, application) {

  // note that if application is not defined, this.application will
  // default to the default, global application.
  this.application = application;

  this._onParent     = _.bind(this._onParent, this);
  SubindableObject.call(this, properties);


  /**
   * The main application that instantiated this view
   * @property application
   * @type {Application}
   */

  this.initialize();
  
  // ref back to this context for templates
  this["this"]     = this;
}
function BaseView (properties, application) {

  // note that if application is not defined, this.application will
  // default to the default, global application.
  this.application = application;

  this._onParent     = _.bind(this._onParent, this);
  SubindableObject.call(this, properties);


  /**
   * The main application that instantiated this view
   * @property application
   * @type {Application}
   */

  this.initialize();
  
  // ref back to this context for templates
  this["this"]     = this;
}
function BaseView ( properties , application ) { // note that if application is not defined, this.application will // default to the default, global application. this . application = application ; this . _onParent = _ . bind ( this . _onParent , this ) ; SubindableObject . call ( this , properties ) ; /**
   * The main application that instantiated this view
   * @property application
   * @type {Application}
   */ this . initialize ( ) ; // ref back to this context for templates this [ "this" ] = this ; }
Called when the view is rendered
@event render
 
Called when the view is remove
@event remove
Called when the view is rendered