aboutsummaryrefslogtreecommitdiff
path: root/js/components
diff options
context:
space:
mode:
authorAnanya Sen2012-07-25 12:29:16 -0700
committerAnanya Sen2012-07-25 12:29:16 -0700
commite7509af2b2fad6ab23ea07e6e46e88a4ee0d03f1 (patch)
tree8a180716f60bf87073233732753da65711c28732 /js/components
parentfa2e82cf10aaa4900a462410cbb99b5b0433a1b1 (diff)
downloadninja-e7509af2b2fad6ab23ea07e6e46e88a4ee0d03f1.tar.gz
adding null check for currentDocument to prevent error
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/components')
-rwxr-xr-xjs/components/layout/document-bar.reel/document-bar.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/js/components/layout/document-bar.reel/document-bar.js b/js/components/layout/document-bar.reel/document-bar.js
index c1d77668..bf84c652 100755
--- a/js/components/layout/document-bar.reel/document-bar.js
+++ b/js/components/layout/document-bar.reel/document-bar.js
@@ -217,9 +217,6 @@ exports.DocumentBar = Montage.create(Component, {
217 value: function () { 217 value: function () {
218 // 218 //
219 this.showView('design', this.renderDesignView, this.btnDesign, this.btnCode); 219 this.showView('design', this.renderDesignView, this.btnDesign, this.btnCode);
220
221 //todo - temp
222 this.application.ninja.documentBar.codeEditorControls.visible = false;
223 } 220 }
224 }, 221 },
225 //////////////////////////////////////////////////////////////////// 222 ////////////////////////////////////////////////////////////////////
@@ -228,9 +225,6 @@ exports.DocumentBar = Montage.create(Component, {
228 value: function () { 225 value: function () {
229 // 226 //
230 this.showView('code', this.renderCodeView, this.btnCode, this.btnDesign); 227 this.showView('code', this.renderCodeView, this.btnCode, this.btnDesign);
231
232 //todo - temp
233 this.application.ninja.documentBar.codeEditorControls.visible = true;
234 } 228 }
235 }, 229 },
236 //////////////////////////////////////////////////////////////////// 230 ////////////////////////////////////////////////////////////////////