ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 28,804
- Points
- 823
Reputation:
I have a function bound to window scrolling:
Code:
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:
Continue reading...
Code:
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');
Continue reading...