* Always return a source instance. Otherwise throw error.
()
| 184 | * Always return a source instance. Otherwise throw error. |
| 185 | */ |
| 186 | prepareSource(): void { |
| 187 | // For the case that call `setOption` multiple time but no data changed, |
| 188 | // cache the result source to prevent from repeating transform. |
| 189 | if (this._isDirty()) { |
| 190 | this._createSource(); |
| 191 | this._dirty = false; |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | private _createSource(): void { |
| 196 | this._setLocalSource([], []); |
no test coverage detected