aboutsummaryrefslogtreecommitdiff
path: root/js/io
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-27 17:32:41 -0700
committerJose Antonio Marquez2012-05-27 17:32:41 -0700
commit6ca89e7233614b93c49a4feadb8a0a82e5800b8f (patch)
tree9484168885857961aca6d8e8c51c75cbfd284792 /js/io
parent526c2cee246c05fde7776e2d4e05f8c4adf27660 (diff)
downloadninja-6ca89e7233614b93c49a4feadb8a0a82e5800b8f.tar.gz
Cleaning up
Diffstat (limited to 'js/io')
-rw-r--r--js/io/system/ninjalibrary.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/js/io/system/ninjalibrary.js b/js/io/system/ninjalibrary.js
index dab623c1..12af5988 100644
--- a/js/io/system/ninjalibrary.js
+++ b/js/io/system/ninjalibrary.js
@@ -65,8 +65,13 @@ exports.NinjaLibrary = Montage.create(Object.prototype, {
65 if (libName === contents[i].name) { 65 if (libName === contents[i].name) {
66 //Getting contents of library to be copied 66 //Getting contents of library to be copied
67 this.chromeApi.directoryContents(contents[i], function (lib) { 67 this.chromeApi.directoryContents(contents[i], function (lib) {
68 //Creating directory structure from subfolders 68 //Copying to cloud, adding blocking if no callback specified
69 this.copyDirectoryToCloud(path, contents[i], path, callback); 69 if (!callback) {
70 //TODO: Add blocking logic here
71 this.copyDirectoryToCloud(path, contents[i], path);
72 } else {
73 this.copyDirectoryToCloud(path, contents[i], path, callback);
74 }
70 }.bind(this)); 75 }.bind(this));
71 break; 76 break;
72 } 77 }