Skip to content

Commit

Permalink
Spinner: Fix typo
Browse files Browse the repository at this point in the history
Closes gh-1764
  • Loading branch information
krosenberg authored and scottgonzalez committed Nov 2, 2016
1 parent 9c5ce4c commit 863a49f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ui/widgets/spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
}( function( $ ) {

function spinnerModifer( fn ) {
function spinnerModifier( fn ) {
return function() {
var previous = this.element.val();
fn.apply( this, arguments );
Expand Down Expand Up @@ -438,7 +438,7 @@ $.widget( "ui.spinner", {
this.buttons.button( value ? "disable" : "enable" );
},

_setOptions: spinnerModifer( function( options ) {
_setOptions: spinnerModifier( function( options ) {
this._super( options );
} ),

Expand Down Expand Up @@ -505,7 +505,7 @@ $.widget( "ui.spinner", {
this.uiSpinner.replaceWith( this.element );
},

stepUp: spinnerModifer( function( steps ) {
stepUp: spinnerModifier( function( steps ) {
this._stepUp( steps );
} ),
_stepUp: function( steps ) {
Expand All @@ -515,7 +515,7 @@ $.widget( "ui.spinner", {
}
},

stepDown: spinnerModifer( function( steps ) {
stepDown: spinnerModifier( function( steps ) {
this._stepDown( steps );
} ),
_stepDown: function( steps ) {
Expand All @@ -525,19 +525,19 @@ $.widget( "ui.spinner", {
}
},

pageUp: spinnerModifer( function( pages ) {
pageUp: spinnerModifier( function( pages ) {
this._stepUp( ( pages || 1 ) * this.options.page );
} ),

pageDown: spinnerModifer( function( pages ) {
pageDown: spinnerModifier( function( pages ) {
this._stepDown( ( pages || 1 ) * this.options.page );
} ),

value: function( newVal ) {
if ( !arguments.length ) {
return this._parse( this.element.val() );
}
spinnerModifer( this._value ).call( this, newVal );
spinnerModifier( this._value ).call( this, newVal );
},

widget: function() {
Expand Down

0 comments on commit 863a49f

Please sign in to comment.