Skip to content

Commit

Permalink
Per v2, re-render a rendered view show in a region
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfalgout committed Aug 17, 2016
1 parent aa684ca commit 917bb86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Region.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export default function() {
}
this._ensureView(view);
if (view === this.currentView) { return this; }
if (view._isRendered) {
view.render();
Marionette.deprecate('Rendered views shown in a Region are not re-rendered in v3.');
}
var isChangingView = !!this.currentView;
if (isChangingView) {
this.triggerMethod('before:swapOut', this.currentView, this, options);
Expand Down

0 comments on commit 917bb86

Please sign in to comment.