mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 03:53:09 +08:00
Call onwriteend not onloadend in FileWriter.abort()
This commit is contained in:
parent
9fd9cf55cf
commit
a0c761664d
@ -443,10 +443,10 @@ FileWriter.prototype.abort = function() {
|
|||||||
|
|
||||||
this.readyState = FileWriter.DONE;
|
this.readyState = FileWriter.DONE;
|
||||||
|
|
||||||
// If load end callback
|
// If write end callback
|
||||||
if (typeof this.onloadend == "function") {
|
if (typeof this.onwriteend == "function") {
|
||||||
var evt = File._createEvent("writeend", this);
|
var evt = File._createEvent("writeend", this);
|
||||||
this.onloadend(evt);
|
this.onwriteend(evt);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user