aboutsummaryrefslogtreecommitdiff
path: root/js/io
diff options
context:
space:
mode:
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 }