File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -305,20 +305,14 @@ $.widget('ui.spinner', {
305
305
_parse : function ( val ) {
306
306
var input = val ;
307
307
if ( typeof val == 'string' ) {
308
- // special case for currency formatting until Globalization handles currencies
309
- if ( this . options . numberformat == "C" && window . Globalization ) {
310
- // parseFloat should accept number format, including currency
311
- var culture = Globalization . culture || Globalization . cultures [ 'default' ] ;
312
- val = val . replace ( culture . numberFormat . currency . symbol , "" ) ;
313
- }
314
- val = window . Globalization && this . options . numberformat ? Globalization . parseFloat ( val ) : + val ;
308
+ val = $ . global && this . options . numberformat ? $ . global . parseFloat ( val ) : + val ;
315
309
}
316
310
return isNaN ( val ) ? null : val ;
317
311
} ,
318
312
319
313
_format : function ( num ) {
320
314
var num = this . options . value ;
321
- this . element . val ( window . Globalization && this . options . numberformat ? Globalization . format ( num , this . options . numberformat ) : num ) ;
315
+ this . element . val ( $ . global && this . options . numberformat ? $ . global . format ( num , this . options . numberformat ) : num ) ;
322
316
} ,
323
317
324
318
destroy : function ( ) {
You can’t perform that action at this time.
0 commit comments