diff options
author | Valerio Virgillito | 2012-05-14 16:04:46 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-14 16:04:46 -0700 |
commit | 9b2cecc30a2e94ac247fddd8ec931b9aa768cb5c (patch) | |
tree | 34297127202ebadd42baf4592973cb920828574d /js | |
parent | 7f71c29e6558eefc5904ca0dfcb7ec898b2492a5 (diff) | |
download | ninja-9b2cecc30a2e94ac247fddd8ec931b9aa768cb5c.tar.gz |
code cleanup
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-x | js/controllers/document-controller.js | 14 |
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 | ||