Browse Source

small fix in isFunction.

Nicolas Cannasse 19 years ago
parent
commit
983223f746
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/Reflect.hx

+ 1 - 1
std/Reflect.hx

@@ -156,7 +156,7 @@ class Reflect {
 		#if flash
 		#if flash
 			f.call == _global["Function"].call && f.__interfaces__ == null
 			f.call == _global["Function"].call && f.__interfaces__ == null
 		#else js
 		#else js
-			f.call == isFunction.call && f.__interfaces__ == null
+			f != null && f.call == isFunction.call && f.__interfaces__ == null
 		#else neko
 		#else neko
 			__dollar__typeof(f) == __dollar__tfunction
 			__dollar__typeof(f) == __dollar__tfunction
 		#else error
 		#else error