You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have this === window inside attachWheel function, because attachWheel(); is called in the code without context. I think it is not necessary to use window and it will be more semantic to use the target element. Also it will save resources in case when the scrolled container is removed without destroy, so the garbage collector will have possibility to clean dead event handlers. We can just replace attachWheel() with attachWheel.call(this) to fix it.
The text was updated successfully, but these errors were encountered:
ne0x
pushed a commit
to ne0x/jQuery-slimScroll
that referenced
this issue
May 30, 2014
We have this === window inside attachWheel function, because attachWheel(); is called in the code without context. I think it is not necessary to use window and it will be more semantic to use the target element. Also it will save resources in case when the scrolled container is removed without destroy, so the garbage collector will have possibility to clean dead event handlers. We can just replace attachWheel() with attachWheel.call(this) to fix it.
The text was updated successfully, but these errors were encountered: