mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-25 19:32:54 +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;
|
||||
|
||||
// If load end callback
|
||||
if (typeof this.onloadend == "function") {
|
||||
// If write end callback
|
||||
if (typeof this.onwriteend == "function") {
|
||||
var evt = File._createEvent("writeend", this);
|
||||
this.onloadend(evt);
|
||||
this.onwriteend(evt);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user