diff options
author | Jose Antonio Marquez | 2012-07-31 13:35:17 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-07-31 13:35:17 -0700 |
commit | b391dde5f319bf4c534e9fce523c22be3bb16ace (patch) | |
tree | 27913b22fc5a899ae679013427d3cfe4b497837a | |
parent | aada5dbc179c06f2eb04db1d5651bb48bf32ec82 (diff) | |
download | ninja-b391dde5f319bf4c534e9fce523c22be3bb16ace.tar.gz |
Fix: Making correct check, was checking wrong object
Prevents re-rendering the same view if selected.
-rwxr-xr-x | js/components/layout/document-bar.reel/document-bar.js | 2 |
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); |