Jaxel
Well-known member
I have a function bound to window scrolling:
How would I go on to unbind this function? I have tried the following, but it unbinds ALL scrolling functions, not just the one
Code:
init: function()
{
XF.on(window, 'scroll', this.scroll.bind(this));
},
scroll: function(e)
{
console.log('scrolling');
},
How would I go on to unbind this function? I have tried the following, but it unbinds ALL scrolling functions, not just the one
this.scroll
function:
Code:
XF.off(window, 'scroll');