From d74569ffa74c2a4830229ee4e5d7a2d86ab1ecad Mon Sep 17 00:00:00 2001 From: macdonst Date: Fri, 1 Apr 2011 22:58:58 +0800 Subject: [PATCH] Read As Text missing load event call FileReader.readAsText didn't call the onload callback on success. --- framework/assets/js/file.js | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/assets/js/file.js b/framework/assets/js/file.js index 3dbcf464..f4ec2123 100755 --- a/framework/assets/js/file.js +++ b/framework/assets/js/file.js @@ -228,6 +228,7 @@ FileReader.prototype.readAsText = function(file, encoding) { // If onload callback if (typeof me.onload === "function") { + me.onload({"type":"load", "target":me}); } // DONE state