daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Jan 20th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top