You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2013/05/29 21:37:00 UTC

js commit: CB-3409 removed deprecated FileReader.readAsText(string) handling

Updated Branches:
  refs/heads/master 0fa849899 -> 11bdd3899


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/master
Commit: 11bdd3899eb4344a18dcbf65a938c67b87cd7950
Parents: 0fa8498
Author: David Kemp <dr...@chromium.org>
Authored: Wed May 22 10:00:00 2013 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Wed May 29 15:36:14 2013 -0400

----------------------------------------------------------------------
 lib/common/plugin/FileReader.js |    6 +-----
 1 files changed, 1 insertions(+), 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 = '';