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 ++++++------ .../file-picker/picker-navigator.reel/picker-navigator.js | 4 ++-- .../new-file-options-navigator.js | 2 +- 6 files changed, 21 insertions(+), 21 deletions(-) (limited to 'js/io') 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, { } } //////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////// }); //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// 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, { } } }, - + pickerModel:{ enumerable:false, writable:true, @@ -388,7 +388,7 @@ var PickerNavigator = exports.PickerNavigator = Montage.create(Component, { addressBarEl.value = folderUri; //update left drive selection - + } } }, diff --git a/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js b/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js index 6a4edd1f..a8fec1e4 100644 --- a/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js +++ b/js/io/ui/new-file-dialog/new-file-options-navigator.reel/new-file-options-navigator.js @@ -324,7 +324,7 @@ var NewFileOptionsNavigator = exports.NewFileOptionsNavigator = Montage.create(C "projectDirectory="+projectDirectory+"\n"+ "projectWidth="+projectWidth+"\n"+ "projectHeight="+projectHeight; - //////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////// //Template data must be passed during file creation (lots of confusion data here, should be cleaned up…) templateData = {id: templateID, name: this.newFileModel.projectTypeData[selectedProjectTypeID].name, type: this.newFileModel.projectTypeData[selectedProjectTypeID].type}; //////////////////////////////////////////////////////////////////// -- cgit v1.2.3