Skip to content

Commit 2626be4

Browse files
committed
Spinner: Style updates
Ref #14246 Ref gh-1588
1 parent 063885f commit 2626be4

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

tests/unit/spinner/common-deprecated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ common.testWidget( "spinner", {
2323
page: 10,
2424
step: 1,
2525

26-
// callbacks
26+
// Callbacks
2727
change: null,
2828
create: null,
2929
spin: null,

tests/unit/spinner/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ common.testWidget( "spinner", {
2323
page: 10,
2424
step: 1,
2525

26-
// callbacks
26+
// Callbacks
2727
change: null,
2828
create: null,
2929
spin: null,

tests/unit/spinner/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ test( "culture, null", function() {
147147
element.spinner( "stepUp" );
148148
equal( element.val(), "¥1", "formatted after step" );
149149

150-
// reset culture
150+
// Reset culture
151151
Globalize.culture( "default" );
152152
});
153153

ui/widgets/spinner.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ $.widget( "ui.spinner", {
9191
this._on( this._events );
9292
this._refresh();
9393

94-
// turning off autocomplete prevents the browser from remembering the
94+
// Turning off autocomplete prevents the browser from remembering the
9595
// value when navigating through history, so we re-enable autocomplete
9696
// if the page is unloaded before the widget is destroyed. #7790
9797
this._on( this.window, {
@@ -178,11 +178,11 @@ $.widget( "ui.spinner", {
178178
}
179179
}
180180

181-
// ensure focus is on (or stays on) the text field
181+
// Ensure focus is on (or stays on) the text field
182182
event.preventDefault();
183183
checkFocus.call( this );
184184

185-
// support: IE
185+
// Support: IE
186186
// IE doesn't prevent moving focus even with event.preventDefault()
187187
// so we set a flag to know when we should ignore the blur event
188188
// and check (again) if focus moved off of the input.
@@ -242,7 +242,7 @@ $.widget( "ui.spinner", {
242242

243243
this.element.attr( "role", "spinbutton" );
244244

245-
// button bindings
245+
// Button bindings
246246
this.buttons = this.uiSpinner.children( "a" )
247247
.attr( "tabIndex", -1 )
248248
.button();
@@ -264,7 +264,7 @@ $.widget( "ui.spinner", {
264264
this.uiSpinner.height( this.uiSpinner.height() );
265265
}
266266

267-
// disable spinner if element was already disabled
267+
// Disable spinner if element was already disabled
268268
if ( this.options.disabled ) {
269269
this.disable();
270270
}
@@ -360,7 +360,7 @@ $.widget( "ui.spinner", {
360360
var base, aboveMin,
361361
options = this.options;
362362

363-
// make sure we're at a valid step
363+
// Make sure we're at a valid step
364364
// - find out where we are relative to the base (min or 0)
365365
base = options.min !== null ? options.min : 0;
366366
aboveMin = value - base;
@@ -369,10 +369,10 @@ $.widget( "ui.spinner", {
369369
// - rounding is based on 0, so adjust back to our base
370370
value = base + aboveMin;
371371

372-
// fix precision from bad JS floating point math
372+
// Fix precision from bad JS floating point math
373373
value = parseFloat( value.toFixed( this._precision() ) );
374374

375-
// clamp the value
375+
// Clamp the value
376376
if ( options.max !== null && value > options.max ) {
377377
return options.max;
378378
}
@@ -461,16 +461,16 @@ $.widget( "ui.spinner", {
461461
isValid: function() {
462462
var value = this.value();
463463

464-
// null is invalid
464+
// Null is invalid
465465
if ( value === null ) {
466466
return false;
467467
}
468468

469-
// if value gets adjusted, it's invalid
469+
// If value gets adjusted, it's invalid
470470
return value === this._adjustValue( value );
471471
},
472472

473-
// update the value without triggering change
473+
// Update the value without triggering change
474474
_value: function( value, allowAny ) {
475475
var parsed;
476476
if ( value !== "" ) {

0 commit comments

Comments
 (0)