()
| 65 | } |
| 66 | |
| 67 | cancel() { |
| 68 | if (this._active) { |
| 69 | // update current evaluated value, for smoother animations |
| 70 | this.tick(Date.now()); |
| 71 | this._active = false; |
| 72 | this._notify(false); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | tick(date) { |
| 77 | const elapsed = date - this._start; |
no test coverage detected