File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -305,20 +305,14 @@ $.widget('ui.spinner', {
305305 _parse : function ( val ) {
306306 var input = val ;
307307 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 ;
315309 }
316310 return isNaN ( val ) ? null : val ;
317311 } ,
318312
319313 _format : function ( num ) {
320314 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 ) ;
322316 } ,
323317
324318 destroy : function ( ) {
You can’t perform that action at this time.
0 commit comments