(offset: number)
| 107 | } |
| 108 | |
| 109 | setOffset(offset: number) { |
| 110 | if (this.state) { |
| 111 | if (this.state.offset !== offset) this.changed = true; |
| 112 | this.state.offset = offset; |
| 113 | } |
| 114 | this.setCache(this.state); |
| 115 | } |
| 116 | |
| 117 | async getCachedOffset(): Promise<number> { |
| 118 | this.state = await this.getCache(); |