Browse Source

prot fix.

Nicolas Cannasse 19 years ago
parent
commit
6266297343
2 changed files with 2 additions and 2 deletions
  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() {