Created
March 5, 2020 13:33
-
-
Save sueLan/a289829cc7d8003e38f68960a10b0003 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewabilityHelper { | |
_config: ViewabilityConfig; | |
_hasInteracted: boolean = false; | |
/* A set of `timeoutID`, used for memory management */ | |
_timers: Set<number> = new Set(); | |
// Indexs of the viewable items | |
_viewableIndices: Array<number> = []; | |
// A map for viewable items | |
_viewableItems: Map<string, ViewToken> = new Map(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment