re-apply Timer linting fixes that happened in the tiled ui PR
This commit is contained in:
parent
8c30d05eb8
commit
a7d21ebb8e
2 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,7 @@ export default class Timer {
|
|||
|
||||
/**
|
||||
* if not started before, starts the timer.
|
||||
* @returns {Timer} the same timer
|
||||
*/
|
||||
start() {
|
||||
if (!this.isRunning()) {
|
||||
|
@ -81,6 +82,7 @@ export default class Timer {
|
|||
|
||||
/**
|
||||
* (re)start the timer. If it's running, reset the timeout. If not, start it.
|
||||
* @returns {Timer} the same timer
|
||||
*/
|
||||
restart() {
|
||||
if (this.isRunning()) {
|
||||
|
@ -98,6 +100,7 @@ export default class Timer {
|
|||
/**
|
||||
* if the timer is running, abort it,
|
||||
* and reject the promise for this timer.
|
||||
* @returns {Timer} the same timer
|
||||
*/
|
||||
abort() {
|
||||
if (this.isRunning()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue