Browse Source

EReg fix for As3

Simon Krajewski 12 years ago
parent
commit
beb9565929
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/flash/_std/EReg.hx

+ 2 - 2
std/flash/_std/EReg.hx

@@ -93,9 +93,9 @@
 	#if !haxe3
 	public inline function customReplace( s : String, f : EReg -> String ) : String {
 		var old = r.global;
-		r.global = true;
+		untyped r["global"] = true;
 		var ret = map(s, f);
-		r.global = old;
+		untyped r["global"] = old;
 		return ret;
 	}
 	#end