aboutsummaryrefslogtreecommitdiff
path: root/js/io/system/ninjalibrary.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/system/ninjalibrary.js')
-rw-r--r--js/io/system/ninjalibrary.js12
1 files changed, 6 insertions, 6 deletions
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////////////////////////////////////////////////////////////////////////