Browse Source

Lua : Fix Reflect.compareMethod

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

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

@@ -70,11 +70,7 @@ import lua.Boot;
 	}
 
 	public static function compareMethods( f1 : Dynamic, f2 : Dynamic ) : Bool {
-		if( f1 == f2 )
-			return true;
-		if( !isFunction(f1) || !isFunction(f2) )
-			return false;
-		return f1.scope == f2.scope && f1.method == f2.method && f1.method != null;
+		return f1 == f2;
 	}
 
 	public static function isObject( v : Dynamic ) : Bool untyped {