From 5ef79d5d198ae0f66582d86c1407e50f99fada27 Mon Sep 17 00:00:00 2001 From: dethe Date: Wed, 18 Mar 2015 09:25:26 -0700 Subject: [PATCH] remove typo / syntax error --- nanomodal.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nanomodal.js b/nanomodal.js index dc9023b..70b49f3 100644 --- a/nanomodal.js +++ b/nanomodal.js @@ -42,8 +42,6 @@ function El(tag, classNames) { } }; - -}); var addClickListener = function(handler) { var flag = false; var wrappedHandler = function(evt){ @@ -54,7 +52,7 @@ function El(tag, classNames) { } } addListener("touchstart", wrappedHandler); - addListener("click", wrappedHandler); + addListener("mousedown", wrappedHandler); }; var show = function(arg) {