Browse Source

bugfix when 2 times Boot.__init__

Nicolas Cannasse 15 years ago
parent
commit
980cae6899
1 changed files with 2 additions and 1 deletions
  1. 2 1
      std/js/Boot.hx

+ 2 - 1
std/js/Boot.hx

@@ -234,7 +234,8 @@ package js;
 					}
 				}
 			};
-			String.prototype.cca = String.prototype.charCodeAt;
+			if( String.prototype.cca == null )
+				String.prototype.cca = String.prototype.charCodeAt;
 			String.prototype.charCodeAt = function(i) {
 				var x = this.cca(i);
 				if( x != x ) // fast isNaN