Skip to content

Commit 086131b

Browse files
committed
Update to latest jquery-global plugin
1 parent 6a79c70 commit 086131b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

external/jquery.global.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ Globalization.parseInt = function(value, radix, culture) {
152152
return Math.floor( this.parseFloat( value, radix, culture ) );
153153
}
154154
Globalization.parseFloat = function(value, radix, culture) {
155+
// make radix optional
156+
if (typeof radix === "string") {
157+
culture = radix;
158+
radix = 10;
159+
}
160+
155161
culture = this.findClosestCulture( culture );
156162
var ret = NaN,
157163
nf = culture.numberFormat;

0 commit comments

Comments
 (0)