Browse Source

[js] use js.Lib.undefined instead of untyped undefined to please the analyzer (not that it matters for this function tho)

Dan Korostelev 10 years ago
parent
commit
0bdafec9ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/js/_std/HxOverrides.hx

+ 1 - 1
std/js/_std/HxOverrides.hx

@@ -62,7 +62,7 @@ class HxOverrides {
 	static function cca( s : String, index : Int ) : Null<Int> {
 	static function cca( s : String, index : Int ) : Null<Int> {
 		var x = (cast s).charCodeAt(index);
 		var x = (cast s).charCodeAt(index);
 		if( x != x ) // fast isNaN
 		if( x != x ) // fast isNaN
-			return untyped undefined; // isNaN will still return true
+			return js.Lib.undefined; // isNaN will still return true
 		return x;
 		return x;
 	}
 	}