[ad_1]
You have scope issues, this in the doStuff is window context.
Use proxy()
hoverInterval = setInterval($.proxy(doStuff,this), 250);
2
[ad_2]
solved Using jquery $(this) in a function
[ad_1]
You have scope issues, this in the doStuff is window context.
Use proxy()
hoverInterval = setInterval($.proxy(doStuff,this), 250);
2
[ad_2]
solved Using jquery $(this) in a function