You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/02/23 18:53:19 UTC
[17/35] git commit: error codes returned from native should be a
simple int
error codes returned from native should be a simple int
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/1dc2bab4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/1dc2bab4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/1dc2bab4
Branch: refs/heads/ios
Commit: 1dc2bab499204713e8ded3ed63769895f676e582
Parents: 99676a4
Author: Fil Maj <fi...@nitobi.com>
Authored: Fri Feb 17 11:19:03 2012 -0800
Committer: Fil Maj <fi...@nitobi.com>
Committed: Fri Feb 17 11:19:03 2012 -0800
----------------------------------------------------------------------
lib/plugin/FileReader.js | 4 ++--
lib/plugin/FileWriter.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/1dc2bab4/lib/plugin/FileReader.js
----------------------------------------------------------------------
diff --git a/lib/plugin/FileReader.js b/lib/plugin/FileReader.js
index d2d0017..611e28e 100644
--- a/lib/plugin/FileReader.js
+++ b/lib/plugin/FileReader.js
@@ -128,7 +128,7 @@ FileReader.prototype.readAsText = function(file, encoding) {
me.result = null;
// Save error
- me.error = new FileError(e.code);
+ me.error = new FileError(e);
// If onerror callback
if (typeof me.onerror === "function") {
@@ -212,7 +212,7 @@ FileReader.prototype.readAsDataURL = function(file) {
me.result = null;
// Save error
- me.error = new FileError(e.code);
+ me.error = new FileError(e);
// If onerror callback
if (typeof me.onerror === "function") {
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/1dc2bab4/lib/plugin/FileWriter.js
----------------------------------------------------------------------
diff --git a/lib/plugin/FileWriter.js b/lib/plugin/FileWriter.js
index 97df438..f727f4a 100644
--- a/lib/plugin/FileWriter.js
+++ b/lib/plugin/FileWriter.js
@@ -130,7 +130,7 @@ FileWriter.prototype.write = function(text) {
me.readyState = FileWriter.DONE;
// Save error
- me.error = new FileError(e.code);
+ me.error = new FileError(e);
// If onerror callback
if (typeof me.onerror === "function") {
@@ -237,7 +237,7 @@ FileWriter.prototype.truncate = function(size) {
me.readyState = FileWriter.DONE;
// Save error
- me.error = new FileError(e.code);
+ me.error = new FileError(e);
// If onerror callback
if (typeof me.onerror === "function") {