Skip to content

Commit

Permalink
done use priority or weakref
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Nov 10, 2023
1 parent 08c8da5 commit 3158433
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions haxe/ui/backend/TimerImpl.hx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package haxe.ui.backend;

import openfl.events.Event;
import openfl.Lib;
import haxe.Timer;
import openfl.Lib;
import openfl.events.Event;

class TimerImpl {
static private var __timers:Array<TimerImpl> = [];
Expand Down Expand Up @@ -42,7 +42,7 @@ class TimerImpl {
_start = Timer.stamp() + (delay / 1000);
__timers.push(this);
if (__timers.length == 1) {
Lib.current.stage.addEventListener(Event.ENTER_FRAME, update, false, 10000, true);
Lib.current.stage.addEventListener(Event.ENTER_FRAME, update);
}
}

Expand Down

0 comments on commit 3158433

Please sign in to comment.