Selaa lähdekoodia

fixed : work with f7

Nicolas Cannasse 19 vuotta sitten
vanhempi
commit
dd9c1f548f
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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() {