forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
@ -49,13 +49,12 @@ import flash.Boot;
|
||||
return untyped __int__(x);
|
||||
}
|
||||
|
||||
public static function parseInt(x:String):Null<Int>
|
||||
untyped {
|
||||
var v = __global__["parseInt"](x);
|
||||
if (__global__["isNaN"](v))
|
||||
return null;
|
||||
return v;
|
||||
}
|
||||
public static function parseInt(x:String):Null<Int> {
|
||||
final v = flash.Lib.parseInt(x);
|
||||
if (Math.isNaN(v))
|
||||
return null;
|
||||
return cast v;
|
||||
}
|
||||
|
||||
public static function parseFloat(x:String):Float {
|
||||
return untyped __global__["parseFloat"](x);
|
||||
|
||||
Reference in New Issue
Block a user