امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
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
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
