aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-07-31 13:35:17 -0700
committerJose Antonio Marquez2012-07-31 13:35:17 -0700
commitb391dde5f319bf4c534e9fce523c22be3bb16ace (patch)
tree27913b22fc5a899ae679013427d3cfe4b497837a
parentaada5dbc179c06f2eb04db1d5651bb48bf32ec82 (diff)
downloadninja-b391dde5f319bf4c534e9fce523c22be3bb16ace.tar.gz
Fix: Making correct check, was checking wrong object
Prevents re-rendering the same view if selected.
-rwxr-xr-xjs/components/layout/document-bar.reel/document-bar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/components/layout/document-bar.reel/document-bar.js b/js/components/layout/document-bar.reel/document-bar.js
index bf84c652..098e9e68 100755
--- a/js/components/layout/document-bar.reel/document-bar.js
+++ b/js/components/layout/document-bar.reel/document-bar.js
@@ -232,7 +232,7 @@ exports.DocumentBar = Montage.create(Component, {
232 showView: { 232 showView: {
233 value: function (view, render, aBtn, iBtn) { 233 value: function (view, render, aBtn, iBtn) {
234 //TODO: Remove reference to string view 234 //TODO: Remove reference to string view
235 if (this._currentDocument.model.currentView !== view) { 235 if (this._currentDocument.currentView !== view) {
236 var doc; 236 var doc;
237 //Switching view and changing button modes 237 //Switching view and changing button modes
238 this._currentDocument.model.switchViewTo(view); 238 this._currentDocument.model.switchViewTo(view);