From a0c761664dd3ab6e681f6af5bed8b80c54d2c0d9 Mon Sep 17 00:00:00 2001 From: macdonst Date: Thu, 3 Feb 2011 02:06:00 +0800 Subject: [PATCH] Call onwriteend not onloadend in FileWriter.abort() --- framework/assets/js/file.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/assets/js/file.js b/framework/assets/js/file.js index d748de24..84c12553 100755 --- a/framework/assets/js/file.js +++ b/framework/assets/js/file.js @@ -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); } };