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
- 24,714
- Points
- 823
Reputation:
Hey there!
Say, I've got the following code:
JavaScript:
Using the XF.proxy (which if I remember correctly will be deprecated in the future), I bind the event to a function.
Now here's my question: how do I remove that event listener again? Using removeEventListener for example did not work for me..
JavaScript:
Even replacing the XF.proxy bit with...
Read more
Continue reading...
Say, I've got the following code:
JavaScript:
document.addEventListener('mouseup', XF.proxy(this, 'actionEnd'));
Using the XF.proxy (which if I remember correctly will be deprecated in the future), I bind the event to a function.
Now here's my question: how do I remove that event listener again? Using removeEventListener for example did not work for me..
JavaScript:
document.removeEventListener('mouseup', XF.proxy(this, 'actionEnd'));
Even replacing the XF.proxy bit with...
Read more
Continue reading...