diff options
-rw-r--r-- | ui/widgets/spinner.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/widgets/spinner.js b/ui/widgets/spinner.js index 447944344..c63f4526a 100644 --- a/ui/widgets/spinner.js +++ b/ui/widgets/spinner.js @@ -35,7 +35,7 @@ } }( function( $ ) { -function spinnerModifer( fn ) { +function spinnerModifier( fn ) { return function() { var previous = this.element.val(); fn.apply( this, arguments ); @@ -438,7 +438,7 @@ $.widget( "ui.spinner", { this.buttons.button( value ? "disable" : "enable" ); }, - _setOptions: spinnerModifer( function( options ) { + _setOptions: spinnerModifier( function( options ) { this._super( options ); } ), @@ -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 ) { @@ -515,7 +515,7 @@ $.widget( "ui.spinner", { } }, - stepDown: spinnerModifer( function( steps ) { + stepDown: spinnerModifier( function( steps ) { this._stepDown( 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 ); } ), - pageDown: spinnerModifer( function( pages ) { + pageDown: spinnerModifier( function( pages ) { this._stepDown( ( pages || 1 ) * this.options.page ); } ), @@ -537,7 +537,7 @@ $.widget( "ui.spinner", { if ( !arguments.length ) { return this._parse( this.element.val() ); } - spinnerModifer( this._value ).call( this, newVal ); + spinnerModifier( this._value ).call( this, newVal ); }, widget: function() { |