Browse Source

fixed : work with f7

Nicolas Cannasse 19 năm trước cách đây
mục cha
commit
dd9c1f548f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      std/flash/Timer.hx

+ 2 - 1
std/flash/Timer.hx

@@ -29,7 +29,8 @@ class Timer {
 	private var id : Int;
 
 	public function new( time : Int ) {
-		id = untyped _global.setInterval(this,"run",time);
+		var me = this;
+		id = untyped _global.setInterval(function() { me.run(); },time);
 	}
 
 	public function run() {