|
@@ -30,7 +30,6 @@ class Timer {
|
|
#else js
|
|
#else js
|
|
private static var arr = new Array<Timer>();
|
|
private static var arr = new Array<Timer>();
|
|
private var timerId : Int;
|
|
private var timerId : Int;
|
|
- #else error
|
|
|
|
#end
|
|
#end
|
|
|
|
|
|
public function new( time : Int ){
|
|
public function new( time : Int ){
|
|
@@ -41,7 +40,8 @@ class Timer {
|
|
var id = arr.length;
|
|
var id = arr.length;
|
|
arr[id] = this;
|
|
arr[id] = this;
|
|
timerId = untyped window.setInterval("haxe.Timer.arr["+id+"].run();",time);
|
|
timerId = untyped window.setInterval("haxe.Timer.arr["+id+"].run();",time);
|
|
- #else error
|
|
|
|
|
|
+ #else neko
|
|
|
|
+ throw "Not implemented";
|
|
#end
|
|
#end
|
|
}
|
|
}
|
|
|
|
|
|
@@ -51,7 +51,7 @@ class Timer {
|
|
id = null;
|
|
id = null;
|
|
#else js
|
|
#else js
|
|
untyped window.clearInterval(timerId);
|
|
untyped window.clearInterval(timerId);
|
|
- #else error
|
|
|
|
|
|
+ #else neko
|
|
#end
|
|
#end
|
|
}
|
|
}
|
|
|
|
|