Skip to content

Commit 013a411

Browse files
committed
Spinner: Update to use camelcase identifiers
1 parent 3d43f0d commit 013a411

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ui/widgets/spinner.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
}( function( $ ) {
3737

38-
function spinner_modifier( fn ) {
38+
function spinnerModifer( fn ) {
3939
return function() {
4040
var previous = this.element.val();
4141
fn.apply( this, arguments );
@@ -435,7 +435,7 @@ $.widget( "ui.spinner", {
435435
}
436436
},
437437

438-
_setOptions: spinner_modifier( function( options ) {
438+
_setOptions: spinnerModifer( function( options ) {
439439
this._super( options );
440440
} ),
441441

@@ -502,7 +502,7 @@ $.widget( "ui.spinner", {
502502
this.uiSpinner.replaceWith( this.element );
503503
},
504504

505-
stepUp: spinner_modifier( function( steps ) {
505+
stepUp: spinnerModifer( function( steps ) {
506506
this._stepUp( steps );
507507
} ),
508508
_stepUp: function( steps ) {
@@ -512,7 +512,7 @@ $.widget( "ui.spinner", {
512512
}
513513
},
514514

515-
stepDown: spinner_modifier( function( steps ) {
515+
stepDown: spinnerModifer( function( steps ) {
516516
this._stepDown( steps );
517517
} ),
518518
_stepDown: function( steps ) {
@@ -522,19 +522,19 @@ $.widget( "ui.spinner", {
522522
}
523523
},
524524

525-
pageUp: spinner_modifier( function( pages ) {
525+
pageUp: spinnerModifer( function( pages ) {
526526
this._stepUp( ( pages || 1 ) * this.options.page );
527527
} ),
528528

529-
pageDown: spinner_modifier( function( pages ) {
529+
pageDown: spinnerModifer( function( pages ) {
530530
this._stepDown( ( pages || 1 ) * this.options.page );
531531
} ),
532532

533533
value: function( newVal ) {
534534
if ( !arguments.length ) {
535535
return this._parse( this.element.val() );
536536
}
537-
spinner_modifier( this._value ).call( this, newVal );
537+
spinnerModifer( this._value ).call( this, newVal );
538538
},
539539

540540
widget: function() {

0 commit comments

Comments
 (0)