Update to latest jquery-global plugin

This commit is contained in:
jzaefferer 2011-01-18 14:16:13 +01:00
parent 6a79c70852
commit 086131b937

View File

@ -152,6 +152,12 @@ Globalization.parseInt = function(value, radix, culture) {
return Math.floor( this.parseFloat( value, radix, culture ) ); return Math.floor( this.parseFloat( value, radix, culture ) );
} }
Globalization.parseFloat = function(value, radix, culture) { Globalization.parseFloat = function(value, radix, culture) {
// make radix optional
if (typeof radix === "string") {
culture = radix;
radix = 10;
}
culture = this.findClosestCulture( culture ); culture = this.findClosestCulture( culture );
var ret = NaN, var ret = NaN,
nf = culture.numberFormat; nf = culture.numberFormat;