From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/io/system/chromeapi.js | 4 ++-- js/io/system/coreioapi.js | 14 +++++++------- js/io/system/fileio.js | 6 +++--- js/io/system/ninjalibrary.js | 12 ++++++------ 4 files changed, 18 insertions(+), 18 deletions(-) (limited to 'js/io/system') 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: The init function starts up the file system API, and a size must be set, no unlimited available as of now. - + //////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// */ // @@ -287,7 +287,7 @@ exports.ChromeApi = Montage.create(Object.prototype, { } } //////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////// }); //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// 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. NOTES: Core API reference in NINJA: this.application.ninja.coreIoApi - + //////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// */ var Montage = require("montage/core/core").Montage, @@ -101,7 +101,7 @@ exports.CoreIoApi = Montage.create(Component, { this.ninjaLibrary.addEventListener('sync', this, false); //Sending library to be synced to chrome this.ninjaLibrary.synchronize(e._event.ninjaChromeLibrary, this.chromeFileSystem); - + } }, //////////////////////////////////////////////////////////////////// @@ -389,7 +389,7 @@ exports.CoreIoApi = Montage.create(Component, { try { var serviceURL = this._prepareServiceURL(this.fileServiceURL, file.uri), xhr = new XMLHttpRequest(); - // + // xhr.open("GET", serviceURL, false); xhr.setRequestHeader("check-existence-only", "true"); xhr.send(); @@ -434,12 +434,12 @@ exports.CoreIoApi = Montage.create(Component, { xhr = new XMLHttpRequest(); // xhr.open("POST", serviceURL, false); - //xhr.responseType = "arraybuffer"; + //xhr.responseType = "arraybuffer"; if(file.contentType && file.contentType.length) xhr.setRequestHeader("Content-Type", file.contentType); else xhr.setRequestHeader("Content-Type", "text/plain"); - + if (file.contents) xhr.send(file.contents); else @@ -700,7 +700,7 @@ exports.CoreIoApi = Montage.create(Component, { // status: int indicating the request HTTP status code // 200 - the file was read and its contents were returned // 404 - the file does not exist - // 500 - unknown server error occurred + // 500 - unknown server error occurred readExternalFile: { enumerable: false, value: function(file) { @@ -893,7 +893,7 @@ exports.CoreIoApi = Montage.create(Component, { var retValue = { success:null, content:null, status:null }; if(dir && dir.uri && dir.uri.length) { try { - var serviceURL = this._prepareServiceURL(this.directoryServiceURL, dir.uri), + var serviceURL = this._prepareServiceURL(this.directoryServiceURL, dir.uri), xhr = new XMLHttpRequest(); // 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: For newFile, only the 'uri' is required, if contents is empty, such empty file will be created. 'contents' should be a string to be saved as the file. 'contentType' is the mime type of the file. - + Core API reference in NINJA: this.application.ninja.coreIoApi - + //////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// */ // @@ -245,7 +245,7 @@ exports.FileIo = Montage.create(Component, { } } //////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////// }); //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// 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, { } else if (contents[i].isFile){ // tracking.total++; - //Copying file + //Copying file this.chromeApi.fileContent(contents[i].fullPath, function (result) { //Using binary when copying files to allow images and such to work 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, { } } } - + } else { //No library is present, must copy all for (var j in libs.libraries) { @@ -223,7 +223,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, { //Getting file contents xhr = new XMLHttpRequest(); xhr.open("GET", tocopylibs[i].path, false); - xhr.responseType = "arraybuffer"; + xhr.responseType = "arraybuffer"; xhr.send(); //Checking for status if (xhr.readyState === 4) { @@ -265,7 +265,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, { for (i=0; this.files[i]; i++) { xhr = new XMLHttpRequest(); xhr.open("GET", this.root+this.files[i], false); - xhr.responseType = "arraybuffer"; + xhr.responseType = "arraybuffer"; xhr.send(); //Checking for status if (xhr.readyState === 4) { @@ -277,7 +277,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, { this.main.libraryCopied(); } }.bind(this)); - } + } } } }.bind(libjson)); @@ -362,7 +362,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, { } } //////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////// }); //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// -- cgit v1.2.3