Nicolas Cannasse 18 years ago
parent
commit
c96f051c8a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      std/flash9/Lib.hx

+ 4 - 1
std/flash9/Lib.hx

@@ -45,8 +45,11 @@ class Lib {
 			if( o != null )
 				break;
 		}
-		if( o == null )
+		if( o == null ) {
+			if( path == "api" )
+				return untyped __global__["api"];
 			return null;
+		}
 		for( f in fields )
 			o = untyped o[f];
 		return o;