cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lorinb...@apache.org
Subject [29/50] [abbrv] webworks commit: Updated navigator.notification.prompt to return an empty string instead of null when no text is entered
Date Tue, 07 May 2013 15:14:16 GMT
Updated navigator.notification.prompt to return an empty string instead of null when no text
is entered

Reviewed by Jeffrey Heifetz <jheifetz@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/d753ae36
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/d753ae36
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/d753ae36

Branch: refs/heads/future
Commit: d753ae3634d4134ad6765a270203590e99e75fc8
Parents: 5c848df
Author: jkeshavarzi <jkeshavarzi@blackberry.com>
Authored: Mon Apr 22 16:07:48 2013 -0400
Committer: Bryan Higgins <bhiggins@blackberry.com>
Committed: Fri May 3 10:13:31 2013 -0400

----------------------------------------------------------------------
 .../project/plugins/Notification/index.js          |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/d753ae36/blackberry10/bin/templates/project/plugins/Notification/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/plugins/Notification/index.js b/blackberry10/bin/templates/project/plugins/Notification/index.js
index 497170b..fad04f7 100644
--- a/blackberry10/bin/templates/project/plugins/Notification/index.js
+++ b/blackberry10/bin/templates/project/plugins/Notification/index.js
@@ -48,7 +48,7 @@ function showDialog(args, dialogType, result) {
             //Prompt dialog callback expects object
             result.callbackOk({
                 buttonIndex: data.ok ? 1 : 0,
-                input1: (data.oktext) ? decodeURIComponent(data.oktext) : null
+                input1: (data.oktext) ? decodeURIComponent(data.oktext) : ""
             }, false);
         }
     });


Mime
View raw message