aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-14 16:04:46 -0700
committerValerio Virgillito2012-05-14 16:04:46 -0700
commit9b2cecc30a2e94ac247fddd8ec931b9aa768cb5c (patch)
tree34297127202ebadd42baf4592973cb920828574d /js
parent7f71c29e6558eefc5904ca0dfcb7ec898b2492a5 (diff)
downloadninja-9b2cecc30a2e94ac247fddd8ec931b9aa768cb5c.tar.gz
code cleanup
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-xjs/controllers/document-controller.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index d88059ab..0a91ae29 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -155,13 +155,13 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
155 }, 155 },
156 156
157 handleExecuteNewFile: { 157 handleExecuteNewFile: {
158 value: function(event) { 158 value: function(event) {
159 var newFileSettings = event._event.settings || {}; 159 var newFileSettings = event._event.settings || {};
160 if (this.application.ninja.coreIoApi.cloudAvailable()) { 160 if (this.application.ninja.coreIoApi.cloudAvailable()) {
161 newFileSettings.callback = this.createNewFile.bind(this); 161 newFileSettings.callback = this.createNewFile.bind(this);
162 this.application.ninja.newFileController.showNewFileDialog(newFileSettings); 162 this.application.ninja.newFileController.showNewFileDialog(newFileSettings);
163 }
164 } 163 }
164 }
165 }, 165 },
166 //////////////////////////////////////////////////////////////////// 166 ////////////////////////////////////////////////////////////////////
167 // 167 //
@@ -607,7 +607,7 @@ if(this.activeDocument && this.application.ninja.coreIoApi.cloudAvailable()){
607 //hide the iframe when switching to code view 607 //hide the iframe when switching to code view
608 document.getElementById("iframeContainer").style.display = "none"; 608 document.getElementById("iframeContainer").style.display = "none";
609 } 609 }
610 } 610 }
611 } 611 }
612 }, 612 },
613 613