From b391dde5f319bf4c534e9fce523c22be3bb16ace Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Tue, 31 Jul 2012 13:35:17 -0700 Subject: Fix: Making correct check, was checking wrong object Prevents re-rendering the same view if selected. --- js/components/layout/document-bar.reel/document-bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') 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, { showView: { value: function (view, render, aBtn, iBtn) { //TODO: Remove reference to string view - if (this._currentDocument.model.currentView !== view) { + if (this._currentDocument.currentView !== view) { var doc; //Switching view and changing button modes this._currentDocument.model.switchViewTo(view); -- cgit v1.2.3