()
| 249 | } |
| 250 | } |
| 251 | update() { |
| 252 | this.isAboveViewport = this.top < this.container.viewportTop; |
| 253 | this.isBelowViewport = this.bottom > this.container.viewportBottom; |
| 254 | |
| 255 | this.isInViewport = |
| 256 | this.top < this.container.viewportBottom && this.bottom > this.container.viewportTop; |
| 257 | this.isFullyInViewport = |
| 258 | (this.top >= this.container.viewportTop && |
| 259 | this.bottom <= this.container.viewportBottom) || |
| 260 | (this.isAboveViewport && this.isBelowViewport); |
| 261 | } |
| 262 | destroy() { |
| 263 | var index = this.container.watchers.indexOf(this), |
| 264 | self = this; |
no outgoing calls
no test coverage detected