Browse Source

minor : marks

Nicolas Cannasse 19 years ago
parent
commit
4980cfd2e5
2 changed files with 7 additions and 5 deletions
  1. 4 2
      std/Type.hx
  2. 3 3
      std/flash/Boot.hx

+ 4 - 2
std/Type.hx

@@ -96,7 +96,8 @@ class Type {
 		#if flash9
 			return untyped __global__["flash.utils.getQualifiedClassName"](c);
 		#else true
-			return untyped c.__name__.join(".");
+			var a : Array<String> = untyped c.__name__;
+			return a.join(".");
 		#end
 	}
 
@@ -108,7 +109,8 @@ class Type {
 			var n = untyped __global__["flash.utils.getQualifiedClassName"](e);
 			return n;
 		#else true
-			return untyped e.__ename__.join(".");
+			var a : Array<String> = untyped e.__ename__;
+			return a.join(".");
 		#end
 	}
 

+ 3 - 3
std/flash/Boot.hx

@@ -125,11 +125,11 @@ class Boot {
 		untyped {
 			if( __instanceof__(o,cl) ) {
 				if( cl == Array )
-					return ( o.__enum__ == null );
+					return ( o[__unprotect__("__enum__")] == null );
 				return true;
 			}
 			#if flash6
-			if( __interfLoop(o.__class__,cl) )
+			if( __interfLoop(o[__unprotect__("__class__")],cl) )
 				return true;
 			#end
 			switch( cl ) {
@@ -220,7 +220,7 @@ class Boot {
 					}
 				}
 			};
-			String.prototype.__class__ = String;
+			String.prototype[__unprotect__("__class__")] = String;
 			String.__name__ = ["String"];
 			var cca = String.prototype["charCodeAt"];
 			String.prototype["charCodeAt"] = function(i) {