()
| 48 | var stopIntFunc; |
| 49 | |
| 50 | function toggleObserveIntersection() { |
| 51 | if (shouldStopInt) { |
| 52 | stopIntFunc(); |
| 53 | } else { |
| 54 | stopIntFunc = window.context.observeIntersection(intersectionCallback); |
| 55 | } |
| 56 | shouldStopInt = !shouldStopInt; |
| 57 | } |
| 58 | |
| 59 | function toggleObserveVisibility() { |
| 60 | if (shouldStopVis) { |
nothing calls this directly
no test coverage detected