|
@@ -81,13 +81,7 @@ class Reflect {
|
|
|
}
|
|
|
|
|
|
public static function isFunction(f:Dynamic):Bool {
|
|
|
- if (Inspect.isfunction(f) || Inspect.ismethod(f)) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- if (Boot.isAnonObject(f)) {
|
|
|
- return Syntax.code("{0}._hx_hasattr({1})", f, "func_code");
|
|
|
- }
|
|
|
- return UBuiltins.hasattr(f, "func_code");
|
|
|
+ return Inspect.isfunction(f) || Inspect.ismethod(f) || Boot.hasField(f, "func_code");
|
|
|
}
|
|
|
|
|
|
public static function compare<T>(a:T, b:T):Int {
|