Explorar o código

added __name__

Nicolas Cannasse %!s(int64=19) %!d(string=hai) anos
pai
achega
e32b5f69b8
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  1. 8 2
      std/Date.hx

+ 8 - 2
std/Date.hx

@@ -126,9 +126,15 @@ extern class Date
 				s = "0" + s;
 			return this.getFullYear()+"-"+m+"-"+d+" "+h+":"+mi+":"+s;
 		};
+		#if flash9
+		#else flash
+		Date.prototype[__unprotect__("__class__")] = Date;
+		Date[__unprotect__("__name__")] = ["Date"];
+		#else true
+		Date.prototype.__class__ = Date;
+		Date.__name__ = ["Date"];
+		#end
 	#end
 	}
 
 }
-
-