src/marionette.component.js
function() {
    var view = this.view = this._getView();

    this._initializeViewEvents();

    // Trigger show:view after the view is shown in the region
    this.listenTo(view, 'show', _.partial(this.triggerMethod, 'show:view'));

    // Trigger before:show before the region shows the view
    this.triggerMethod('before:show:view');

    // Show the view in the region
    this.region.show(view);

    // Destroy the component if the region is emptied because it destroys
    // the view
    this.listenToOnce(this.region, 'empty', this.destroy);
  }
function() {
    var view = this.view = this._getView();

    this._initializeViewEvents();

    // Trigger show:view after the view is shown in the region
    this.listenTo(view, 'show', _.partial(this.triggerMethod, 'show:view'));

    // Trigger before:show before the region shows the view
    this.triggerMethod('before:show:view');

    // Show the view in the region
    this.region.show(view);

    // Destroy the component if the region is emptied because it destroys
    // the view
    this.listenToOnce(this.region, 'empty', this.destroy);
  }
function ( ) { var view = this . view = this . _getView ( ) ; this . _initializeViewEvents ( ) ; // Trigger show:view after the view is shown in the region this . listenTo ( view , 'show' , _ . partial ( this . triggerMethod , 'show:view' ) ) ; // Trigger before:show before the region shows the view this . triggerMethod ( 'before:show:view' ) ; // Show the view in the region this . region . show ( view ) ; // Destroy the component if the region is emptied because it destroys // the view this . listenToOnce ( this . region , 'empty' , this . destroy ) ; }
Show the view in the region
Show the view in the region