cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/2] cordova-plugin-dialogs git commit: Fix dumb linting error
Date Fri, 09 Sep 2016 23:31:32 GMT
Repository: cordova-plugin-dialogs
Updated Branches:
  refs/heads/master 9a19139ee -> 68ceff4d0


Fix dumb linting error


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/68ceff4d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/68ceff4d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/68ceff4d

Branch: refs/heads/master
Commit: 68ceff4d0ef5c5de9144d09d7a05712c439951c1
Parents: 5ebefa8
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Fri Sep 9 16:27:49 2016 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Fri Sep 9 16:30:51 2016 -0700

----------------------------------------------------------------------
 src/windows/NotificationProxy.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/68ceff4d/src/windows/NotificationProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/NotificationProxy.js b/src/windows/NotificationProxy.js
index e826557..c5bc272 100644
--- a/src/windows/NotificationProxy.js
+++ b/src/windows/NotificationProxy.js
@@ -120,7 +120,9 @@ function createPromptDialog(title, message, buttons, defaultText, callback)
{
     var defaultButton = dlg.querySelector(".dlgButtonFirst");
     dlg.addEventListener("keypress",function(e) {
         if (e.keyCode === 13) { // enter key
-            defaultButton && defaultButton.click();
+            if(defaultButton) {
+                defaultButton.click();
+            }
         }
     });
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message