CB-3762 Change prompt default to empty string

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/96c5fa74
Tree: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/96c5fa74
Diff: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/96c5fa74

Branch: refs/heads/master
Commit: 96c5fa74ef80fd26e01aced561adc341a11b93fd
Parents: 2fbdea5
Author: mbillau <[email protected]>
Authored: Fri Jul 26 09:59:58 2013 -0400
Committer: Andrew Grieve <[email protected]>
Committed: Fri Dec 6 14:57:54 2013 -0500

----------------------------------------------------------------------
 www/notification.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/96c5fa74/www/notification.js
----------------------------------------------------------------------
diff --git a/www/notification.js b/www/notification.js
index fb1db3a..c357fdc 100644
--- a/www/notification.js
+++ b/www/notification.js
@@ -88,13 +88,13 @@ module.exports = {
      * @param {Function} resultCallback     The callback that is called when 
user clicks on a button.
      * @param {String} title                Title of the dialog (default: 
"Prompt")
      * @param {Array} buttonLabels          Array of strings for the button 
labels (default: ["OK","Cancel"])
-     * @param {String} defaultText          Textbox input value (default: 
"Default text")
+     * @param {String} defaultText          Textbox input value (default: 
empty string)
      */
     prompt: function(message, resultCallback, title, buttonLabels, 
defaultText) {
         var _message = (message || "Prompt message");
         var _title = (title || "Prompt");
         var _buttonLabels = (buttonLabels || ["OK","Cancel"]);
-        var _defaultText = (defaultText || "Default text");
+        var _defaultText = (defaultText || "");
         exec(resultCallback, null, "Notification", "prompt", [_message, 
_title, _buttonLabels, _defaultText]);
     },
 

Reply via email to