* @param {!Element} target * @param {{ * root: (!Document|!Element|undefined), * rootMargin: (string|undefined), * thresholds: (number|!Array |undefined), * }=} options * @return {boolean}
(target, options = {})
| 39 | * @return {boolean} |
| 40 | */ |
| 41 | isObserved(target, options = {}) { |
| 42 | return Array.from(this.observers).some((observer) => { |
| 43 | if (!observer.elements.has(target)) { |
| 44 | return false; |
| 45 | } |
| 46 | return matchesObserver(observer, options); |
| 47 | }); |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * @param {!IntersectionObserverEntry|!Array<IntersectionObserverEntry>} entryOrEntries |
nothing calls this directly
no test coverage detected