examples/map/js/backbone.marionette.js
function(view){

    this.ensureEl();

    var isViewClosed = view.isClosed || _.isUndefined(view.$el);

    var isDifferentView = view !== this.currentView;

    if (isDifferentView) {
      this.close();
    }

    view.render();

    if (isDifferentView || isViewClosed) {
      this.open(view);
    }
    
    this.currentView = view;

    Marionette.triggerMethod.call(this, "show", view);
    Marionette.triggerMethod.call(view, "show");
  }
function(view){

    this.ensureEl();

    var isViewClosed = view.isClosed || _.isUndefined(view.$el);

    var isDifferentView = view !== this.currentView;

    if (isDifferentView) {
      this.close();
    }

    view.render();

    if (isDifferentView || isViewClosed) {
      this.open(view);
    }
    
    this.currentView = view;

    Marionette.triggerMethod.call(this, "show", view);
    Marionette.triggerMethod.call(view, "show");
  }
function ( view ) { this . ensureEl ( ) ; var isViewClosed = view . isClosed || _ . isUndefined ( view . $el ) ; var isDifferentView = view !== this . currentView ; if ( isDifferentView ) { this . close ( ) ; } view . render ( ) ; if ( isDifferentView || isViewClosed ) { this . open ( view ) ; } this . currentView = view ; Marionette . triggerMethod . call ( this , "show" , view ) ; Marionette . triggerMethod . call ( view , "show" ) ; }
Displays a backbone view instance inside of the region. Handles calling the `render` method for you. Reads content directly from the `el` attribute. Also calls an optional `onShow` and `close` method on your view, just after showing or just before closing the view, respectively.
Displays a backbone view instance inside of the region . Handles calling the render method for you . Reads content directly from the el attribute . Also calls an optional onShow and close method on your view just after showing or just before closing the view respectively .