v0.0.24
This commit is contained in:
parent
533c37d9ec
commit
d11e84d268
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "filer",
|
"name": "filer",
|
||||||
"version": "0.0.23",
|
"version": "0.0.24",
|
||||||
"main": "dist/filer.js",
|
"main": "dist/filer.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"mocha": "1.17.1",
|
"mocha": "1.17.1",
|
||||||
|
|
|
@ -14549,8 +14549,8 @@ function FileSystem(options, callback) {
|
||||||
fs.readyState = FS_ERROR;
|
fs.readyState = FS_ERROR;
|
||||||
} else {
|
} else {
|
||||||
fs.readyState = FS_READY;
|
fs.readyState = FS_READY;
|
||||||
runQueued();
|
|
||||||
}
|
}
|
||||||
|
runQueued();
|
||||||
callback(error, fs);
|
callback(error, fs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14627,6 +14627,13 @@ FileSystem.providers = providers;
|
||||||
var error = fs.queueOrRun(function() {
|
var error = fs.queueOrRun(function() {
|
||||||
var context = fs.provider.openReadWriteContext();
|
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
|
// Wrap the callback so we can explicitly close the context
|
||||||
function complete() {
|
function complete() {
|
||||||
context.close();
|
context.close();
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -11,7 +11,7 @@
|
||||||
"idb",
|
"idb",
|
||||||
"websql"
|
"websql"
|
||||||
],
|
],
|
||||||
"version": "0.0.23",
|
"version": "0.0.24",
|
||||||
"author": "Alan K <ack@modeswitch.org> (http://blog.modeswitch.org)",
|
"author": "Alan K <ack@modeswitch.org> (http://blog.modeswitch.org)",
|
||||||
"homepage": "http://js-platform.github.io/filer",
|
"homepage": "http://js-platform.github.io/filer",
|
||||||
"bugs": "https://github.com/js-platform/filer/issues",
|
"bugs": "https://github.com/js-platform/filer/issues",
|
||||||
|
|
Loading…
Reference in New Issue