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/03/15 20:36:24 UTC

[2/21] git commit: adding proper dependencies to ios specific filereader plugin as per Beckys findings

adding proper dependencies to ios specific filereader plugin as per Beckys findings


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/1d63465c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/1d63465c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/1d63465c

Branch: refs/heads/master
Commit: 1d63465c12cd5c50630a08d020ca8aa6df6c9b02
Parents: 9973152
Author: Fil Maj <ma...@gmail.com>
Authored: Wed Mar 14 15:35:19 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu Mar 15 10:18:36 2012 -0700

----------------------------------------------------------------------
 lib/platform/ios.js          |    2 +-
 lib/plugin/ios/FileReader.js |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/1d63465c/lib/platform/ios.js
----------------------------------------------------------------------
diff --git a/lib/platform/ios.js b/lib/platform/ios.js
index d99c3e9..041ec9d 100644
--- a/lib/platform/ios.js
+++ b/lib/platform/ios.js
@@ -18,7 +18,7 @@ module.exports = {
         FileReader.prototype.readAsText = require('cordova/plugin/ios/FileReader').readAsText;
     },
     objects: {
-        File: { // exists natively , override
+        File: { // exists natively, override
             path: "cordova/plugin/File"
         },
         MediaError: { // exists natively, override

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/1d63465c/lib/plugin/ios/FileReader.js
----------------------------------------------------------------------
diff --git a/lib/plugin/ios/FileReader.js b/lib/plugin/ios/FileReader.js
index 86b0ae8..5711393 100644
--- a/lib/plugin/ios/FileReader.js
+++ b/lib/plugin/ios/FileReader.js
@@ -1,3 +1,8 @@
+var exec = require('cordova/exec'),
+    FileError = require('cordova/plugin/FileError'),
+    FileReader = require('cordova/plugin/FileReader'),
+    ProgressEvent = require('cordova/plugin/ProgressEvent');
+
 module.exports = {
     readAsText:function(file, encoding) {
         // Figure out pathing