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

+ 1 - 1
std/Date.hx

@@ -107,7 +107,7 @@ extern class Date
 				throw "Invalid date format : " + s;
 			}
 		};
-		Date.prototype.toString = function() {
+		Date.prototype["toString"] = function() {
 			var m = this.getMonth() + 1;
 			var d = this.getDate();
 			var h = this.getHours();

+ 1 - 1
std/flash/Lib.hx

@@ -68,7 +68,7 @@ class Lib {
 	}
 
 	public static function registerClass( name : String, cl : {} ) {
-		untyped _global["Object"].registerClass(name,cl);
+		untyped _global["Object"]["registerClass"](name,cl);
 	}
 
 	public static function throwException() {