From: jzaefferer Date: Tue, 18 Jan 2011 13:16:13 +0000 (+0100) Subject: Update to latest jquery-global plugin X-Git-Tag: 1.9m4~38^2~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=086131b937b3b71a272a4521932a3c44a399261b;p=jquery-ui.git Update to latest jquery-global plugin --- diff --git a/external/jquery.global.js b/external/jquery.global.js index 8aac5fdbe..29ae5c637 100644 --- a/external/jquery.global.js +++ b/external/jquery.global.js @@ -152,6 +152,12 @@ Globalization.parseInt = function(value, radix, culture) { return Math.floor( this.parseFloat( value, radix, culture ) ); } Globalization.parseFloat = function(value, radix, culture) { + // make radix optional + if (typeof radix === "string") { + culture = radix; + radix = 10; + } + culture = this.findClosestCulture( culture ); var ret = NaN, nf = culture.numberFormat;