You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2016/12/08 00:56:48 UTC

[05/12] cordova-plugin-dialogs git commit: Fix dumb linting error

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/1.3.x
Commit: 68ceff4d0ef5c5de9144d09d7a05712c439951c1
Parents: 5ebefa8
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Sep 9 16:27:49 2016 -0700
Committer: Jesse MacFadyen <pu...@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