Closed bbbiiiaaa closed 10 years ago
Hi, Your plugin works great. I have one question, though. In this line you bind the watchActive handler to the scroll event and you use the on() method again. Could you explain me why?
on()
$(window).on('scroll',watchActive).on('scroll')
Great question - it looks like someone incorrectly refactored the binding from:
$(window).scroll(watchActive).scroll();
Hi, Your plugin works great. I have one question, though. In this line you bind the watchActive handler to the scroll event and you use the
on()
method again. Could you explain me why?