Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var el = document.getElementById('scroll');
- var twoNext = 0
- this.swipedetect(el, function(swipedir){
- if (!isNaN(swipedir)) {
- twoNext = swipedir
- console.log(twoNext) // значение присвоилось
- }
- })
- console.log(twoNext)// значение undefuned
Add Comment
Please, Sign In to add comment