Skip to content

Commit 863a49f

Browse files
krosenbergscottgonzalez
authored andcommitted
Spinner: Fix typo
Closes jquerygh-1764
1 parent 9c5ce4c commit 863a49f

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 spinnerModifer( fn ) {
38+
function spinnerModifier( fn ) {
3939
return function() {
4040
var previous = this.element.val();
4141
fn.apply( this, arguments );
@@ -438,7 +438,7 @@ $.widget( "ui.spinner", {
438438
this.buttons.button( value ? "disable" : "enable" );
439439
},
440440

441-
_setOptions: spinnerModifer( function( options ) {
441+
_setOptions: spinnerModifier( function( options ) {
442442
this._super( options );
443443
} ),
444444

@@ -505,7 +505,7 @@ $.widget( "ui.spinner", {
505505
this.uiSpinner.replaceWith( this.element );
506506
},
507507

508-
stepUp: spinnerModifer( function( steps ) {
508+
stepUp: spinnerModifier( function( steps ) {
509509
this._stepUp( steps );
510510
} ),
511511
_stepUp: function( steps ) {
@@ -515,7 +515,7 @@ $.widget( "ui.spinner", {
515515
}
516516
},
517517

518-
stepDown: spinnerModifer( function( steps ) {
518+
stepDown: spinnerModifier( function( steps ) {
519519
this._stepDown( steps );
520520
} ),
521521
_stepDown: function( steps ) {
@@ -525,19 +525,19 @@ $.widget( "ui.spinner", {
525525
}
526526
},
527527

528-
pageUp: spinnerModifer( function( pages ) {
528+
pageUp: spinnerModifier( function( pages ) {
529529
this._stepUp( ( pages || 1 ) * this.options.page );
530530
} ),
531531

532-
pageDown: spinnerModifer( function( pages ) {
532+
pageDown: spinnerModifier( function( pages ) {
533533
this._stepDown( ( pages || 1 ) * this.options.page );
534534
} ),
535535

536536
value: function( newVal ) {
537537
if ( !arguments.length ) {
538538
return this._parse( this.element.val() );
539539
}
540-
spinnerModifer( this._value ).call( this, newVal );
540+
spinnerModifier( this._value ).call( this, newVal );
541541
},
542542

543543
widget: function() {

0 commit comments

Comments
 (0)