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

    if (this.isClosed){
      // a previously closed layout means we need to 
      // completely re-initialize the regions
      this._initializeRegions();
    }
    if (this._firstRender) {
      // if this is the first render, don't do anything to
      // reset the regions
      this._firstRender = false;
    } else if (!this.isClosed){
      // If this is not the first render call, then we need to 
      // re-initializing the `el` for each region
      this._reInitializeRegions();
    }

    var args = Array.prototype.slice.apply(arguments);
    var result = Marionette.ItemView.prototype.render.apply(this, args);

    return result;
  }
function(){

    if (this.isClosed){
      // a previously closed layout means we need to 
      // completely re-initialize the regions
      this._initializeRegions();
    }
    if (this._firstRender) {
      // if this is the first render, don't do anything to
      // reset the regions
      this._firstRender = false;
    } else if (!this.isClosed){
      // If this is not the first render call, then we need to 
      // re-initializing the `el` for each region
      this._reInitializeRegions();
    }

    var args = Array.prototype.slice.apply(arguments);
    var result = Marionette.ItemView.prototype.render.apply(this, args);

    return result;
  }
function ( ) { if ( this . isClosed ) { // a previously closed layout means we need to  // completely re-initialize the regions this . _initializeRegions ( ) ; } if ( this . _firstRender ) { // if this is the first render, don't do anything to // reset the regions this . _firstRender = false ; } else if ( ! this . isClosed ) { // If this is not the first render call, then we need to  // re-initializing the `el` for each region this . _reInitializeRegions ( ) ; } var args = Array . prototype . slice . apply ( arguments ) ; var result = Marionette . ItemView . prototype . render . apply ( this , args ) ; return result ; }
Layout's render will use the existing region objects the first time it is called. Subsequent calls will close the views that the regions are showing and then reset the `el` for the regions to the newly rendered DOM elements.
Layout s render will use the existing region objects the first time it is called . Subsequent calls will close the views that the regions are showing and then reset the el for the regions to the newly rendered DOM elements .