mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Fix global variable declarations
This commit is contained in:
parent
5707cea630
commit
be18e564c9
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
// 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);
|
removeEvent(document.body, 'click', wrongClickListener);
|
||||||
if (!clickReady() && getEventTarget(e) != t) cancelEvent(e);
|
if (!clickReady() && getEventTarget(e) != t) cancelEvent(e);
|
||||||
}
|
},
|
||||||
setClickTimeout = function() {
|
setClickTimeout = function() {
|
||||||
// Update timeout during which click events will be blocked.
|
// Update timeout during which click events will be blocked.
|
||||||
document.body.setAttribute('data-touchtimeout', new Date().getTime() + timeout);
|
document.body.setAttribute('data-touchtimeout', new Date().getTime() + timeout);
|
||||||
|
|
|
@ -373,7 +373,7 @@ var t = getEventTarget(e),
|
||||||
removeClass(wallets[i], 'active');
|
removeClass(wallets[i], 'active');
|
||||||
}
|
}
|
||||||
removeEvent(document.body, 'click', walletListener);
|
removeEvent(document.body, 'click', walletListener);
|
||||||
};
|
};
|
||||||
// Call appropriate function on click.
|
// Call appropriate function on click.
|
||||||
onTouchClick(e, function() {
|
onTouchClick(e, function() {
|
||||||
walletHide();
|
walletHide();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue