aboutsummaryrefslogtreecommitdiff
path: root/js/io/system/coreioapi.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-06 11:40:15 -0800
committerJose Antonio Marquez2012-02-06 11:40:15 -0800
commit295d72960cad391850803e8c4e83d5133bbe82f7 (patch)
tree5a53af8978ec982b74b01edeb125ee24f8b59234 /js/io/system/coreioapi.js
parent17bda238bc6973832394c0ba8fb08da09557931e (diff)
downloadninja-295d72960cad391850803e8c4e83d5133bbe82f7.tar.gz
Setting up library detection for Chrome File System
Diffstat (limited to 'js/io/system/coreioapi.js')
-rwxr-xr-xjs/io/system/coreioapi.js19
1 files changed, 18 insertions, 1 deletions
diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js
index 3fb9374a..3be6011d 100755
--- a/js/io/system/coreioapi.js
+++ b/js/io/system/coreioapi.js
@@ -55,8 +55,25 @@ exports.CoreIoApi = Montage.create(Component, {
55 handleReady: { 55 handleReady: {
56 enumerable: false, 56 enumerable: false,
57 value: function (e) { 57 value: function (e) {
58 //
58 this.chromeFileSystem.removeEventListener('ready', this, false); 59 this.chromeFileSystem.removeEventListener('ready', this, false);
59 this.chromeNinjaLibrary = this.chromeFileSystem.getLocalLibrary(); 60 //
61 this.chromeFileSystem.addEventListener('library', this, false);
62 }
63 },
64 ////////////////////////////////////////////////////////////////////
65 //
66 handleLibrary: {
67 enumerable: false,
68 value: function (e) {
69 //
70 this.chromeFileSystem.removeEventListener('library', this, false);
71 //
72 if (e._event.ninjaChromeLibrary.length < 1) {
73 console.log('no libraries');
74 } else {
75 console.log('found libraries');
76 }
60 } 77 }
61 }, 78 },
62 //////////////////////////////////////////////////////////////////// 79 ////////////////////////////////////////////////////////////////////