]> source.dussan.org Git - jquery-ui.git/commitdiff
Update to latest jquery-global plugin
authorjzaefferer <joern.zaefferer@gmail.com>
Tue, 18 Jan 2011 13:16:13 +0000 (14:16 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Tue, 18 Jan 2011 13:16:13 +0000 (14:16 +0100)
external/jquery.global.js

index 8aac5fdbef355963c668d3c9a7af4326f20ece32..29ae5c637f07d4997525775b7e0b55a0eb16381d 100644 (file)
@@ -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;