Skip to content

Commit

Permalink
Fix duplicate declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Jul 14, 2024
1 parent 0f4ca8d commit 26cb33b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/js/functions.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,10 @@ function getParameterByName(name, url)
rec.right - wPosition.left > 0 && rec.right < vpWidth + wPosition.left :
rec.right > 0 && rec.right <= vpWidth,
vVisible = partial ? tViz || bViz : tViz && bViz,
hVisible = partial ? lViz || rViz : lViz && rViz,
vVisible = (rec.top < 0 && rec.bottom > vpHeight) ? true : vVisible,
hVisible = (rec.left < 0 && rec.right > vpWidth) ? true : hVisible;
hVisible = partial ? lViz || rViz : lViz && rViz;

vVisible = (rec.top < 0 && rec.bottom > vpHeight) ? true : vVisible;
hVisible = (rec.left < 0 && rec.right > vpWidth) ? true : hVisible;

if(direction === 'both')
return clientSize && vVisible && hVisible;
Expand Down

0 comments on commit 26cb33b

Please sign in to comment.