This commit is contained in:
Alan K 2014-08-18 14:40:44 -04:00
parent 533c37d9ec
commit d11e84d268
4 changed files with 12 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "filer",
"version": "0.0.23",
"version": "0.0.24",
"main": "dist/filer.js",
"devDependencies": {
"mocha": "1.17.1",

9
dist/filer.js vendored
View File

@ -14549,8 +14549,8 @@ function FileSystem(options, callback) {
fs.readyState = FS_ERROR;
} else {
fs.readyState = FS_READY;
runQueued();
}
runQueued();
callback(error, fs);
}
@ -14627,6 +14627,13 @@ FileSystem.providers = providers;
var error = fs.queueOrRun(function() {
var context = fs.provider.openReadWriteContext();
// Fail early if the filesystem is in an error state (e.g.,
// provider failed to open.
if(FS_ERROR === fs.readyState) {
var err = new Errors.EFILESYSTEMERROR('filesystem unavailable, operation canceled');
return callback.call(fs, err);
}
// Wrap the callback so we can explicitly close the context
function complete() {
context.close();

4
dist/filer.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
"idb",
"websql"
],
"version": "0.0.23",
"version": "0.0.24",
"author": "Alan K <ack@modeswitch.org> (http://blog.modeswitch.org)",
"homepage": "http://js-platform.github.io/filer",
"bugs": "https://github.com/js-platform/filer/issues",