Explorar el Código

fixed : work with f7

Nicolas Cannasse hace 19 años
padre
commit
dd9c1f548f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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() {