diff options
Diffstat (limited to 'js/io/system/coreioapi.js')
-rwxr-xr-x | js/io/system/coreioapi.js | 19 |
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 | //////////////////////////////////////////////////////////////////// |