Skip to content
Browse files

removed argument from getDataString

  • Loading branch information...
1 parent dd3803e commit e733b49ed3dbed06937f6384be66b158ebe2f199 Boris Smus committed Dec 16, 2010
Showing with 7 additions and 6 deletions.
  1. +5 −4 Android/WebIntent/README.md
  2. +2 −2 Android/WebIntent/webintent.js
View
9 Android/WebIntent/README.md
@@ -45,10 +45,11 @@ Gets the extra that this app was invoked with. For example:
### getDataString ###
Gets the data URL this intent is operating on in string form. For example:
- window.plugins.webintent.getDataString(WebIntent.EXTRA_TEXT,
- function(dataString) {
- // dataString is the data URL string.
- }, function() {}
+ window.plugins.webintent.getDataString(function(dataString) {
+ // dataString is the data URL string.
+ }, function() {
+ // This shouldn't ever happen
+ }
);
## Licence ##
View
4 Android/WebIntent/webintent.js
@@ -36,12 +36,12 @@ WebIntent.prototype.getExtra = function(params, success, fail) {
}, 'WebIntent', 'getExtra', [params]);
};
-WebIntent.prototype.getDataString = function(params, success, fail) {
+WebIntent.prototype.getDataString = function(success, fail) {
return PhoneGap.exec(function(args) {
success(args);
}, function(args) {
fail(args);
- }, 'WebIntent', 'getDataString', [params]);
+ }, 'WebIntent', 'getDataString', []);
};
PhoneGap.addConstructor(function() {

0 comments on commit e733b49

Please sign in to comment.
Something went wrong with that request. Please try again.