RSS Feed/News Undefined Removal Order and Behavior caused by XF.off

Status
Not open for further replies.

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
29,608
Points
823

Reputation:

When using the Javascript method XF.off to remove an event listener from a known element, the method removes a matching listener from XF.eventHandlers even though the evaluated listener may actually belong to a different element, usually when multiple elements share the same listener. At first glance this may seem safe, because there are still the expected number of listeners in the cache and all listeners can still be removed individually, if in an unexpected order.

But in practice, we...

Read more

Continue reading...
 
Status
Not open for further replies.
Top