Skip to content

Commit

Permalink
reduce timer allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Feb 17, 2023
1 parent 035ccba commit e9618da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TimerFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TimerFunction {

if(delay === undefined || delay === null) delay = this._defaultDelay

if(this._timer === timer) this._timer = setTimeout(this._boundWork, delay)
if(this._timer === timer) this._timer.refresh()
}
start(timeout = null){
if(this._timer) {
Expand Down

0 comments on commit e9618da

Please sign in to comment.