Corrected spelling of "spinnerModifer" to "spinnerModifier"

This commit is contained in:
Kyle Rosenberg 2016-10-26 09:12:12 -05:00 committed by GitHub
parent 9c5ce4c3e9
commit 55b279730e

View File

@ -35,7 +35,7 @@
} }
}( function( $ ) { }( function( $ ) {
function spinnerModifer( fn ) { function spinnerModifier( fn ) {
return function() { return function() {
var previous = this.element.val(); var previous = this.element.val();
fn.apply( this, arguments ); fn.apply( this, arguments );
@ -438,7 +438,7 @@ $.widget( "ui.spinner", {
this.buttons.button( value ? "disable" : "enable" ); this.buttons.button( value ? "disable" : "enable" );
}, },
_setOptions: spinnerModifer( function( options ) { _setOptions: spinnerModifier( function( options ) {
this._super( options ); this._super( options );
} ), } ),
@ -505,7 +505,7 @@ $.widget( "ui.spinner", {
this.uiSpinner.replaceWith( this.element ); this.uiSpinner.replaceWith( this.element );
}, },
stepUp: spinnerModifer( function( steps ) { stepUp: spinnerModifier( function( steps ) {
this._stepUp( steps ); this._stepUp( steps );
} ), } ),
_stepUp: function( steps ) { _stepUp: function( steps ) {
@ -515,7 +515,7 @@ $.widget( "ui.spinner", {
} }
}, },
stepDown: spinnerModifer( function( steps ) { stepDown: spinnerModifier( function( steps ) {
this._stepDown( steps ); this._stepDown( steps );
} ), } ),
_stepDown: function( steps ) { _stepDown: function( steps ) {
@ -525,11 +525,11 @@ $.widget( "ui.spinner", {
} }
}, },
pageUp: spinnerModifer( function( pages ) { pageUp: spinnerModifier( function( pages ) {
this._stepUp( ( pages || 1 ) * this.options.page ); this._stepUp( ( pages || 1 ) * this.options.page );
} ), } ),
pageDown: spinnerModifer( function( pages ) { pageDown: spinnerModifier( function( pages ) {
this._stepDown( ( pages || 1 ) * this.options.page ); this._stepDown( ( pages || 1 ) * this.options.page );
} ), } ),
@ -537,7 +537,7 @@ $.widget( "ui.spinner", {
if ( !arguments.length ) { if ( !arguments.length ) {
return this._parse( this.element.val() ); return this._parse( this.element.val() );
} }
spinnerModifer( this._value ).call( this, newVal ); spinnerModifier( this._value ).call( this, newVal );
}, },
widget: function() { widget: function() {