diff options
author | Valerio Virgillito | 2012-05-03 15:57:43 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-03 15:57:43 -0700 |
commit | 8dcbac5d4c30e9dfbc543a5f997939111e9c9f89 (patch) | |
tree | b053a48b8c835ae9087a97bfdf02746e7b4c3833 /js/io/system/ninjalibrary.js | |
parent | 602240c38e0f2c3937d3c7246247e0b59bccab2b (diff) | |
parent | f3479e478f3cec1cb00508bedbce8dc5a210931a (diff) | |
download | ninja-8dcbac5d4c30e9dfbc543a5f997939111e9c9f89.tar.gz |
Merge pull request #193 from joseeight/Document
New Document View
Diffstat (limited to 'js/io/system/ninjalibrary.js')
-rw-r--r-- | js/io/system/ninjalibrary.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/io/system/ninjalibrary.js b/js/io/system/ninjalibrary.js index 201598fc..78bdbe53 100644 --- a/js/io/system/ninjalibrary.js +++ b/js/io/system/ninjalibrary.js | |||
@@ -213,7 +213,7 @@ exports.NinjaLibrary = Montage.create(Object.prototype, { | |||
213 | xhr.responseType = "arraybuffer"; | 213 | xhr.responseType = "arraybuffer"; |
214 | xhr.send(); | 214 | xhr.send(); |
215 | //Checking for status | 215 | //Checking for status |
216 | if (xhr.readyState === 4) { //TODO: add check for mime type | 216 | if (xhr.readyState === 4) { |
217 | //Creating new file from loaded content | 217 | //Creating new file from loaded content |
218 | this.chromeApi.fileNew('/'+tocopylibs[i].name+'/'+tocopylibs[i].file, xhr.response, function (status) {if(status) this.libraryCopied()}.bind(this)); | 218 | this.chromeApi.fileNew('/'+tocopylibs[i].name+'/'+tocopylibs[i].file, xhr.response, function (status) {if(status) this.libraryCopied()}.bind(this)); |
219 | } else { | 219 | } else { |