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 Aug 9, 2022. It is now read-only.
I have $(target).onScreen('remove'); call at the end of my doIn method - but the doIn gets called every time the element is on screen (I'm trying to just get it to fire the first time)
The text was updated successfully, but these errors were encountered:
For anyone else that also wishes to disable the onScreen event after the first onScreen and finds that the remove option is not usable since you must remove the listener from all elements...
I simple added a class inside the doIn function to the element after my logic then check for the existing of that class at the beginning of the doIn function to prevent it from running again. This allows my other elements to still be able to use the onScreen without worrying about anything firing twice.
I have $(target).onScreen('remove'); call at the end of my doIn method - but the doIn gets called every time the element is on screen (I'm trying to just get it to fire the first time)
The text was updated successfully, but these errors were encountered: