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 <[email protected]> Authored: Wed May 22 10:00:00 2013 -0400 Committer: Ian Clelland <[email protected]> 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 = '';
