Browse Source

Lua: Use correct invocation style inside of Reflect

Justin Donaldson 9 years ago
parent
commit
bb9abbe531
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/lua/_std/Reflect.hx

+ 1 - 1
std/lua/_std/Reflect.hx

@@ -39,7 +39,7 @@ import lua.Boot;
 
 	public static inline function getProperty( o : Dynamic, field : String ) : Dynamic {
 		var tmp : Dynamic;
-		return if( o == null ) untyped __define_feature__("Reflect.getProperty",null) else if( o.__properties__ && (tmp=Reflect.field(o.__properties__,"get_"+field)) ) callMethod(o,Reflect.field(o,tmp), []) else Reflect.field(o,field);
+		return if( o == null ) untyped __define_feature__("Reflect.getProperty",null) else if( o.__properties__ && (tmp="get_"+field) ) callMethod(o,Reflect.field(o,tmp), []) else Reflect.field(o,field);
 	}
 
 	public static inline function setProperty( o : Dynamic, field : String, value : Dynamic ) : Void untyped {