瀏覽代碼

fixed : work with f7

Nicolas Cannasse 19 年之前
父節點
當前提交
dd9c1f548f
共有 1 個文件被更改,包括 2 次插入1 次删除
  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() {