Guest User

Untitled

a guest
Jan 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var el = document.getElementById('scroll');
  2. var twoNext = 0
  3. this.swipedetect(el, function(swipedir){
  4. if (!isNaN(swipedir)) {
  5. twoNext = swipedir
  6. console.log(twoNext) // значение присвоилось
  7. }
  8. })
  9. console.log(twoNext)// значение undefuned
Add Comment
Please, Sign In to add comment