diff options
author | Valerio Virgillito | 2012-02-16 11:39:42 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-16 11:39:42 -0800 |
commit | eaee73ccaf271f5c82fdf67b35c71510f308fb6e (patch) | |
tree | 798eb17a926cd8fd16bd025ecd392d3e2f63226e /js/io/system/coreioapi.js | |
parent | b12b167116b757e1a945c05f45991d0ed385aed3 (diff) | |
parent | 71619045b692015b0889a4f5c381c1dee9c056cd (diff) | |
download | ninja-eaee73ccaf271f5c82fdf67b35c71510f308fb6e.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal
Diffstat (limited to 'js/io/system/coreioapi.js')
-rwxr-xr-x | js/io/system/coreioapi.js | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js index ea9627cc..a75b59bb 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js | |||
@@ -40,6 +40,7 @@ exports.CoreIoApi = Montage.create(Component, { | |||
40 | //////////////////////////////////////////////////////////// | 40 | //////////////////////////////////////////////////////////// |
41 | //Instance of ninja library | 41 | //Instance of ninja library |
42 | this.ninjaLibrary = NinjaLibrary; | 42 | this.ninjaLibrary = NinjaLibrary; |
43 | this.ninjaLibrary.coreApi = this; | ||
43 | //Getting reference of chrome file system API | 44 | //Getting reference of chrome file system API |
44 | this.chromeFileSystem = ChromeApi; | 45 | this.chromeFileSystem = ChromeApi; |
45 | //Sending size in MBs for file system storage | 46 | //Sending size in MBs for file system storage |
@@ -62,6 +63,7 @@ exports.CoreIoApi = Montage.create(Component, { | |||
62 | this.chromeFileSystem.removeEventListener('ready', this, false); | 63 | this.chromeFileSystem.removeEventListener('ready', this, false); |
63 | //Listening for library to be copied event (builds list) | 64 | //Listening for library to be copied event (builds list) |
64 | this.chromeFileSystem.addEventListener('library', this, false); | 65 | this.chromeFileSystem.addEventListener('library', this, false); |
66 | //TODO: Add sync loading screen logic (Add screen here) | ||
65 | } | 67 | } |
66 | }, | 68 | }, |
67 | //////////////////////////////////////////////////////////////////// | 69 | //////////////////////////////////////////////////////////////////// |
@@ -86,21 +88,7 @@ exports.CoreIoApi = Montage.create(Component, { | |||
86 | console.log('Ninja Local Library: Ready'); | 88 | console.log('Ninja Local Library: Ready'); |
87 | //Removing events | 89 | //Removing events |
88 | this.ninjaLibrary.removeEventListener('sync', this, false); | 90 | this.ninjaLibrary.removeEventListener('sync', this, false); |
89 | this.ninjaLibrary.coreApi = this; | 91 | //TODO: Add sync loading screen logic (Remove screen here) |
90 | //TODO: Add sync loading screen logic | ||
91 | |||
92 | //TODO: Remove test | ||
93 | //this.ninjaLibrary.copyLibToCloud('Users/kgq387/Desktop/Ninja Cloud/Disk', 'montage0.6.0'); | ||
94 | //this.ninjaLibrary.deleteLibraries(); | ||
95 | /* | ||
96 | window.hack = function (name, type) { | ||
97 | this.application.ninja.ioMediator.fileNew('Users/kgq387/Desktop/Ninja Cloud/Disk/'+name+'.'+type, '/js/io/templates/files/'+type+'.txt', function (status) {console.log(status)}); | ||
98 | }.bind(this); | ||
99 | */ | ||
100 | window.hack = function (path) { | ||
101 | // | ||
102 | this.application.ninja.ioMediator.fileOpen('Users/kgq387/Desktop/Ninja Cloud/Disk/'+path, function (result) {console.log(result)}); | ||
103 | }.bind(this); | ||
104 | } | 92 | } |
105 | }, | 93 | }, |
106 | //////////////////////////////////////////////////////////////////// | 94 | //////////////////////////////////////////////////////////////////// |