Call onwriteend not onloadend in FileWriter.abort()

This commit is contained in:
macdonst 2011-02-03 02:06:00 +08:00
parent 9fd9cf55cf
commit a0c761664d

View File

@ -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);
} }
}; };