|
@@ -60,11 +60,7 @@ class HxOverrides {
|
|
|
}
|
|
|
|
|
|
static function cca( s : String, index : Int ) : Null<Int> {
|
|
|
- #if mt
|
|
|
- var x = (cast s).cca(index);
|
|
|
- #else
|
|
|
var x = (cast s).charCodeAt(index);
|
|
|
- #end
|
|
|
if( x != x ) // fast isNaN
|
|
|
return untyped undefined; // isNaN will still return true
|
|
|
return x;
|
|
@@ -138,10 +134,6 @@ class HxOverrides {
|
|
|
__feature__('HxOverrides.indexOf', if( Array.prototype.indexOf ) __js__("HxOverrides").indexOf = function(a,o,i) return Array.prototype.indexOf.call(a, o, i));
|
|
|
__feature__('HxOverrides.lastIndexOf', if( Array.prototype.lastIndexOf ) __js__("HxOverrides").lastIndexOf = function(a,o,i) return Array.prototype.lastIndexOf.call(a, o, i));
|
|
|
#end
|
|
|
-
|
|
|
-#if mt
|
|
|
- if( String.prototype.cca == null ) String.prototype.cca = String.prototype.charCodeAt;
|
|
|
-#end
|
|
|
}
|
|
|
|
|
|
}
|