From be18e564c942c91c74ef96b90c854abcaf10bede Mon Sep 17 00:00:00 2001 From: Saivann Date: Tue, 7 Jul 2015 16:27:17 -0400 Subject: [PATCH] Fix global variable declarations --- js/base.js | 2 +- js/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/base.js b/js/base.js index 5472035c..c482eefb 100644 --- a/js/base.js +++ b/js/base.js @@ -98,7 +98,7 @@ var timeout = 1000, // This avoids accidental clicks when the page is scrolled or updated due to the 300ms click event delay on mobiles. removeEvent(document.body, 'click', wrongClickListener); if (!clickReady() && getEventTarget(e) != t) cancelEvent(e); - } + }, setClickTimeout = function() { // Update timeout during which click events will be blocked. document.body.setAttribute('data-touchtimeout', new Date().getTime() + timeout); diff --git a/js/main.js b/js/main.js index cb5dca25..3941f070 100644 --- a/js/main.js +++ b/js/main.js @@ -373,7 +373,7 @@ var t = getEventTarget(e), removeClass(wallets[i], 'active'); } removeEvent(document.body, 'click', walletListener); -}; + }; // Call appropriate function on click. onTouchClick(e, function() { walletHide();