(cb)
| 285 | } |
| 286 | |
| 287 | updateFrame(cb) { |
| 288 | this.updateScrollParent(); |
| 289 | if (typeof cb !== 'function') cb = NOOP; |
| 290 | switch (this.props.type) { |
| 291 | case 'simple': |
| 292 | return this.updateSimpleFrame(cb); |
| 293 | case 'variable': |
| 294 | return this.updateVariableFrame(cb); |
| 295 | case 'uniform': |
| 296 | return this.updateUniformFrame(cb); |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | updateScrollParent() { |
| 301 | const prev = this.scrollParent; |
no test coverage detected