aboutsummaryrefslogtreecommitdiff
path: root/js/io
diff options
context:
space:
mode:
authorKris Kowal2012-07-06 11:53:10 -0700
committerKris Kowal2012-07-06 15:01:48 -0700
commit04343eda8c2f870b0da55cfdc8003c99fe1cc4de (patch)
tree0a6048889b65bb16ff58822e55bc1346e9eb07bd /js/io
parent648ee61ae84216d0236e0dbc211addc13b2cfa3a (diff)
downloadninja-04343eda8c2f870b0da55cfdc8003c99fe1cc4de.tar.gz
Remove trailing spaces
Diffstat (limited to 'js/io')
-rw-r--r--js/io/system/chromeapi.js4
-rwxr-xr-xjs/io/system/coreioapi.js14
-rwxr-xr-xjs/io/system/fileio.js6
-rw-r--r--js/io/system/ninjalibrary.js12
-rw-r--r--js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js4
-rw-r--r--js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js2
6 files changed, 21 insertions, 21 deletions
diff --git a/js/io/system/chromeapi.js b/js/io/system/chromeapi.js
index 3561a617..887ee634 100644
--- a/js/io/system/chromeapi.js
+++ b/js/io/system/chromeapi.js
@@ -34,7 +34,7 @@ NOTES:
34 34
35 The init function starts up the file system API, and a size must be 35 The init function starts up the file system API, and a size must be
36 set, no unlimited available as of now. 36 set, no unlimited available as of now.
37 37
38//////////////////////////////////////////////////////////////////////// 38////////////////////////////////////////////////////////////////////////
39///////////////////////////////////////////////////////////////////// */ 39///////////////////////////////////////////////////////////////////// */
40// 40//
@@ -287,7 +287,7 @@ exports.ChromeApi = Montage.create(Object.prototype, {
287 } 287 }
288 } 288 }
289 //////////////////////////////////////////////////////////////////// 289 ////////////////////////////////////////////////////////////////////
290 //////////////////////////////////////////////////////////////////// 290 ////////////////////////////////////////////////////////////////////
291}); 291});
292//////////////////////////////////////////////////////////////////////// 292////////////////////////////////////////////////////////////////////////
293//////////////////////////////////////////////////////////////////////// 293////////////////////////////////////////////////////////////////////////
diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js
index 121b4410..c3782aef 100755
--- a/js/io/system/coreioapi.js
+++ b/js/io/system/coreioapi.js
@@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
33NOTES: 33NOTES:
34 34
35 Core API reference in NINJA: this.application.ninja.coreIoApi 35 Core API reference in NINJA: this.application.ninja.coreIoApi
36 36
37//////////////////////////////////////////////////////////////////////// 37////////////////////////////////////////////////////////////////////////
38///////////////////////////////////////////////////////////////////// */ 38///////////////////////////////////////////////////////////////////// */
39var Montage = require("montage/core/core").Montage, 39var Montage = require("montage/core/core").Montage,
@@ -101,7 +101,7 @@ exports.CoreIoApi = Montage.create(Component, {
101 this.ninjaLibrary.addEventListener('sync', this, false); 101 this.ninjaLibrary.addEventListener('sync', this, false);
102 //Sending library to be synced to chrome 102 //Sending library to be synced to chrome
103 this.ninjaLibrary.synchronize(e._event.ninjaChromeLibrary, this.chromeFileSystem); 103 this.ninjaLibrary.synchronize(e._event.ninjaChromeLibrary, this.chromeFileSystem);
104 104
105 } 105 }
106 }, 106 },
107 //////////////////////////////////////////////////////////////////// 107 ////////////////////////////////////////////////////////////////////
@@ -389,7 +389,7 @@ exports.CoreIoApi = Montage.create(Component, {
389 try { 389 try {
390 var serviceURL = this._prepareServiceURL(this.fileServiceURL, file.uri), 390 var serviceURL = this._prepareServiceURL(this.fileServiceURL, file.uri),
391 xhr = new XMLHttpRequest(); 391 xhr = new XMLHttpRequest();
392 // 392 //
393 xhr.open("GET", serviceURL, false); 393 xhr.open("GET", serviceURL, false);
394 xhr.setRequestHeader("check-existence-only", "true"); 394 xhr.setRequestHeader("check-existence-only", "true");
395 xhr.send(); 395 xhr.send();
@@ -434,12 +434,12 @@ exports.CoreIoApi = Montage.create(Component, {
434 xhr = new XMLHttpRequest(); 434 xhr = new XMLHttpRequest();
435 // 435 //
436 xhr.open("POST", serviceURL, false); 436 xhr.open("POST", serviceURL, false);
437 //xhr.responseType = "arraybuffer"; 437 //xhr.responseType = "arraybuffer";
438 if(file.contentType && file.contentType.length) 438 if(file.contentType && file.contentType.length)
439 xhr.setRequestHeader("Content-Type", file.contentType); 439 xhr.setRequestHeader("Content-Type", file.contentType);
440 else 440 else
441 xhr.setRequestHeader("Content-Type", "text/plain"); 441 xhr.setRequestHeader("Content-Type", "text/plain");
442 442
443 if (file.contents) 443 if (file.contents)
444 xhr.send(file.contents); 444 xhr.send(file.contents);
445 else 445 else
@@ -700,7 +700,7 @@ exports.CoreIoApi = Montage.create(Component, {
700 // status: int indicating the request HTTP status code 700 // status: int indicating the request HTTP status code
701 // 200 - the file was read and its contents were returned 701 // 200 - the file was read and its contents were returned
702 // 404 - the file does not exist 702 // 404 - the file does not exist
703 // 500 - unknown server error occurred 703 // 500 - unknown server error occurred
704 readExternalFile: { 704 readExternalFile: {
705 enumerable: false, 705 enumerable: false,
706 value: function(file) { 706 value: function(file) {
@@ -893,7 +893,7 @@ exports.CoreIoApi = Montage.create(Component, {
893 var retValue = { success:null, content:null, status:null }; 893 var retValue = { success:null, content:null, status:null };
894 if(dir && dir.uri && dir.uri.length) { 894 if(dir && dir.uri && dir.uri.length) {
895 try { 895 try {
896 var serviceURL = this._prepareServiceURL(this.directoryServiceURL, dir.uri), 896 var serviceURL = this._prepareServiceURL(this.directoryServiceURL, dir.uri),
897 xhr = new XMLHttpRequest(); 897 xhr = new XMLHttpRequest();
898 // 898 //
899 xhr.open("GET", serviceURL, false); 899 xhr.open("GET", serviceURL, false);
diff --git a/js/io/system/fileio.js b/js/io/system/fileio.js
index 50b86248..8fabe317 100755
--- a/js/io/system/fileio.js
+++ b/js/io/system/fileio.js
@@ -35,9 +35,9 @@ NOTES:
35 For newFile, only the 'uri' is required, if contents is empty, such 35 For newFile, only the 'uri' is required, if contents is empty, such
36 empty file will be created. 'contents' should be a string to be saved 36 empty file will be created. 'contents' should be a string to be saved
37 as the file. 'contentType' is the mime type of the file. 37 as the file. 'contentType' is the mime type of the file.
38 38
39 Core API reference in NINJA: this.application.ninja.coreIoApi 39 Core API reference in NINJA: this.application.ninja.coreIoApi
40 40
41//////////////////////////////////////////////////////////////////////// 41////////////////////////////////////////////////////////////////////////
42///////////////////////////////////////////////////////////////////// */ 42///////////////////////////////////////////////////////////////////// */
43// 43//
@@ -245,7 +245,7 @@ exports.FileIo = Montage.create(Component, {
245 } 245 }
246 } 246 }
247 //////////////////////////////////////////////////////////////////// 247 ////////////////////////////////////////////////////////////////////
248 //////////////////////////////////////////////////////////////////// 248 ////////////////////////////////////////////////////////////////////
249}); 249});
250//////////////////////////////////////////////////////////////////////// 250////////////////////////////////////////////////////////////////////////
251//////////////////////////////////////////////////////////////////////// 251////////////////////////////////////////////////////////////////////////
diff --git a/js/io/system/ninjalibrary.js b/js/io/system/ninjalibrary.js
index 902506e2..be59fd07 100644
--- a/js/io/system/ninjalibrary.js
+++ b/js/io/system/ninjalibrary.js
@@ -140,7 +140,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, {
140 } else if (contents[i].isFile){ 140 } else if (contents[i].isFile){
141 // 141 //
142 tracking.total++; 142 tracking.total++;
143 //Copying file 143 //Copying file
144 this.chromeApi.fileContent(contents[i].fullPath, function (result) { 144 this.chromeApi.fileContent(contents[i].fullPath, function (result) {
145 //Using binary when copying files to allow images and such to work 145 //Using binary when copying files to allow images and such to work
146 var file = this.coreApi.createFile({uri: (fileRoot+result.file.fullPath).replace(/\/\//gi, '/'), contents: result.content}); 146 var file = this.coreApi.createFile({uri: (fileRoot+result.file.fullPath).replace(/\/\//gi, '/'), contents: result.content});
@@ -197,7 +197,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, {
197 } 197 }
198 } 198 }
199 } 199 }
200 200
201 } else { 201 } else {
202 //No library is present, must copy all 202 //No library is present, must copy all
203 for (var j in libs.libraries) { 203 for (var j in libs.libraries) {
@@ -223,7 +223,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, {
223 //Getting file contents 223 //Getting file contents
224 xhr = new XMLHttpRequest(); 224 xhr = new XMLHttpRequest();
225 xhr.open("GET", tocopylibs[i].path, false); 225 xhr.open("GET", tocopylibs[i].path, false);
226 xhr.responseType = "arraybuffer"; 226 xhr.responseType = "arraybuffer";
227 xhr.send(); 227 xhr.send();
228 //Checking for status 228 //Checking for status
229 if (xhr.readyState === 4) { 229 if (xhr.readyState === 4) {
@@ -265,7 +265,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, {
265 for (i=0; this.files[i]; i++) { 265 for (i=0; this.files[i]; i++) {
266 xhr = new XMLHttpRequest(); 266 xhr = new XMLHttpRequest();
267 xhr.open("GET", this.root+this.files[i], false); 267 xhr.open("GET", this.root+this.files[i], false);
268 xhr.responseType = "arraybuffer"; 268 xhr.responseType = "arraybuffer";
269 xhr.send(); 269 xhr.send();
270 //Checking for status 270 //Checking for status
271 if (xhr.readyState === 4) { 271 if (xhr.readyState === 4) {
@@ -277,7 +277,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, {
277 this.main.libraryCopied(); 277 this.main.libraryCopied();
278 } 278 }
279 }.bind(this)); 279 }.bind(this));
280 } 280 }
281 } 281 }
282 } 282 }
283 }.bind(libjson)); 283 }.bind(libjson));
@@ -362,7 +362,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, {
362 } 362 }
363 } 363 }
364 //////////////////////////////////////////////////////////////////// 364 ////////////////////////////////////////////////////////////////////
365 //////////////////////////////////////////////////////////////////// 365 ////////////////////////////////////////////////////////////////////
366}); 366});
367//////////////////////////////////////////////////////////////////////// 367////////////////////////////////////////////////////////////////////////
368//////////////////////////////////////////////////////////////////////// 368////////////////////////////////////////////////////////////////////////
diff --git a/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js b/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js
index 3066e0a8..0536f7eb 100644
--- a/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js
+++ b/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js
@@ -202,7 +202,7 @@ var PickerNavigator = exports.PickerNavigator = Montage.create(Component, {
202 } 202 }
203 } 203 }
204 }, 204 },
205 205
206 pickerModel:{ 206 pickerModel:{
207 enumerable:false, 207 enumerable:false,
208 writable:true, 208 writable:true,
@@ -388,7 +388,7 @@ var PickerNavigator = exports.PickerNavigator = Montage.create(Component, {
388 addressBarEl.value = folderUri;