Forráskód Böngészése

[js] don't inline Reflect.(get|set)Property methods, as those are too big and messy for that

Dan Korostelev 8 éve
szülő
commit
3ae700c713
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      std/js/_std/Reflect.hx

+ 2 - 2
std/js/_std/Reflect.hx

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