* Updates this view at next frame. * @return {View} Fluent interface
()
| 118 | * @return {View} Fluent interface |
| 119 | */ |
| 120 | setNeedsUpdate () { |
| 121 | if (!this._needsUpdate) { |
| 122 | this._needsUpdate = true |
| 123 | window.requestAnimationFrame(() => { |
| 124 | this._needsUpdate = false |
| 125 | this.update() |
| 126 | }) |
| 127 | } |
| 128 | return this |
| 129 | } |
| 130 | |
| 131 | /** |
| 132 | * Updates view on model change. |
no test coverage detected