You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.
would unsubscribe from _callbackA, while leaving _callbackB in tact. However, when inspecting the code, no matter what, all listeners are deleted (foundation.core.js, function unsubscribe):
delete listeners[name];
If a developer adds listeners to a modal, then later unsubscribes from them, the internal modal's listener is removed, causing that modal to stop working.
The text was updated successfully, but these errors were encountered:
You can
subscribe
to the same event multiple times without issue:Internally (in
foundation.core.js, function subscribe
), this adds the callbacks to alisteners
array:It's implied in #806 that unsubscribing in this manner:
would unsubscribe from
_callbackA
, while leaving_callbackB
in tact. However, when inspecting the code, no matter what, all listeners are deleted (foundation.core.js, function unsubscribe
):If a developer adds listeners to a modal, then later unsubscribes from them, the internal modal's listener is removed, causing that modal to stop working.
The text was updated successfully, but these errors were encountered: