diff options
Diffstat (limited to 'js/io/system/ninjalibrary.js')
-rw-r--r-- | js/io/system/ninjalibrary.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/io/system/ninjalibrary.js b/js/io/system/ninjalibrary.js index c85de3b0..fc943323 100644 --- a/js/io/system/ninjalibrary.js +++ b/js/io/system/ninjalibrary.js | |||
@@ -297,6 +297,24 @@ exports.NinjaLibrary = Montage.create(Object.prototype, { | |||
297 | }, | 297 | }, |
298 | //////////////////////////////////////////////////////////////////// | 298 | //////////////////////////////////////////////////////////////////// |
299 | // | 299 | // |
300 | deleteLibraries: { | ||
301 | enumerable: true, | ||
302 | value: function () { | ||
303 | function parseLibrary (contents) { | ||
304 | // | ||
305 | for(var i=0; contents[i]; i++) { | ||
306 | // | ||
307 | if (contents[i].isDirectory) { | ||
308 | this.chromeApi.directoryDelete(contents[i].name); | ||
309 | } | ||
310 | } | ||
311 | }; | ||
312 | // | ||
313 | this.chromeApi.directoryContents(this.chromeApi.fileSystem.root, parseLibrary.bind(this)); | ||
314 | } | ||
315 | }, | ||
316 | //////////////////////////////////////////////////////////////////// | ||
317 | // | ||
300 | _dispatchEvent: { | 318 | _dispatchEvent: { |
301 | enumerable: true, | 319 | enumerable: true, |
302 | value: function () { | 320 | value: function () { |