cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [08/16] js commit: CB-3409 removed deprecated FileReader.readAsText(string) handling
Date Mon, 10 Jun 2013 23:04:41 GMT
CB-3409 removed deprecated FileReader.readAsText(string) handling


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/11bdd389
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/11bdd389
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/11bdd389

Branch: refs/heads/3.0.0
Commit: 11bdd3899eb4344a18dcbf65a938c67b87cd7950
Parents: 0fa8498
Author: David Kemp <drkemp@chromium.org>
Authored: Wed May 22 10:00:00 2013 -0400
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Wed May 29 15:36:14 2013 -0400

----------------------------------------------------------------------
 lib/common/plugin/FileReader.js | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/11bdd389/lib/common/plugin/FileReader.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/FileReader.js b/lib/common/plugin/FileReader.js
index 115f8fa..78c70cb 100644
--- a/lib/common/plugin/FileReader.js
+++ b/lib/common/plugin/FileReader.js
@@ -84,11 +84,7 @@ function initRead(reader, file) {
     reader._error = null;
     reader._readyState = FileReader.LOADING;
 
-    if (typeof file == 'string') {
-        // Deprecated in Cordova 2.4.
-        console.warn('Using a string argument with FileReader.readAs functions is deprecated.');
-        reader._fileName = file;
-    } else if (typeof file.fullPath == 'string') {
+    if (typeof file.fullPath == 'string') {
         reader._fileName = file.fullPath;
     } else {
         reader._fileName = '';


Mime
View raw message