Question: on() method binded twice?
bbbiiiaaa opened this issue · 1 comments
bbbiiiaaa commented
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?
$(window).on('scroll',watchActive).on('scroll')
cmpolis commented
Great question - it looks like someone incorrectly refactored the binding from:
$(window).scroll(watchActive).scroll();