@@ -91,7 +91,7 @@ $.widget( "ui.spinner", {
91
91
this . _on ( this . _events ) ;
92
92
this . _refresh ( ) ;
93
93
94
- // turning off autocomplete prevents the browser from remembering the
94
+ // Turning off autocomplete prevents the browser from remembering the
95
95
// value when navigating through history, so we re-enable autocomplete
96
96
// if the page is unloaded before the widget is destroyed. #7790
97
97
this . _on ( this . window , {
@@ -178,11 +178,11 @@ $.widget( "ui.spinner", {
178
178
}
179
179
}
180
180
181
- // ensure focus is on (or stays on) the text field
181
+ // Ensure focus is on (or stays on) the text field
182
182
event . preventDefault ( ) ;
183
183
checkFocus . call ( this ) ;
184
184
185
- // support : IE
185
+ // Support : IE
186
186
// IE doesn't prevent moving focus even with event.preventDefault()
187
187
// so we set a flag to know when we should ignore the blur event
188
188
// and check (again) if focus moved off of the input.
@@ -242,7 +242,7 @@ $.widget( "ui.spinner", {
242
242
243
243
this . element . attr ( "role" , "spinbutton" ) ;
244
244
245
- // button bindings
245
+ // Button bindings
246
246
this . buttons = this . uiSpinner . children ( "a" )
247
247
. attr ( "tabIndex" , - 1 )
248
248
. button ( ) ;
@@ -264,7 +264,7 @@ $.widget( "ui.spinner", {
264
264
this . uiSpinner . height ( this . uiSpinner . height ( ) ) ;
265
265
}
266
266
267
- // disable spinner if element was already disabled
267
+ // Disable spinner if element was already disabled
268
268
if ( this . options . disabled ) {
269
269
this . disable ( ) ;
270
270
}
@@ -360,7 +360,7 @@ $.widget( "ui.spinner", {
360
360
var base , aboveMin ,
361
361
options = this . options ;
362
362
363
- // make sure we're at a valid step
363
+ // Make sure we're at a valid step
364
364
// - find out where we are relative to the base (min or 0)
365
365
base = options . min !== null ? options . min : 0 ;
366
366
aboveMin = value - base ;
@@ -369,10 +369,10 @@ $.widget( "ui.spinner", {
369
369
// - rounding is based on 0, so adjust back to our base
370
370
value = base + aboveMin ;
371
371
372
- // fix precision from bad JS floating point math
372
+ // Fix precision from bad JS floating point math
373
373
value = parseFloat ( value . toFixed ( this . _precision ( ) ) ) ;
374
374
375
- // clamp the value
375
+ // Clamp the value
376
376
if ( options . max !== null && value > options . max ) {
377
377
return options . max ;
378
378
}
@@ -461,16 +461,16 @@ $.widget( "ui.spinner", {
461
461
isValid : function ( ) {
462
462
var value = this . value ( ) ;
463
463
464
- // null is invalid
464
+ // Null is invalid
465
465
if ( value === null ) {
466
466
return false ;
467
467
}
468
468
469
- // if value gets adjusted, it's invalid
469
+ // If value gets adjusted, it's invalid
470
470
return value === this . _adjustValue ( value ) ;
471
471
} ,
472
472
473
- // update the value without triggering change
473
+ // Update the value without triggering change
474
474
_value : function ( value , allowAny ) {
475
475
var parsed ;
476
476
if ( value !== "" ) {
0 commit comments