diff options
author | Kyle Rosenberg <kyle.rosenberg@gmail.com> | 2016-10-26 09:12:12 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-11-02 12:48:00 -0400 |
commit | 863a49f95b181adaf76cbaf268e4ecf5485dbcf1 (patch) | |
tree | a7dde0c96243d7db9d34e8c4c394efd47ae6b71a | |
parent | 9c5ce4c3e986136b8dce14b6b1ccd5296d932f01 (diff) | |
download | jquery-ui-863a49f95b181adaf76cbaf268e4ecf5485dbcf1.tar.gz jquery-ui-863a49f95b181adaf76cbaf268e4ecf5485dbcf1.zip |
Spinner: Fix typo
Closes gh-1764
-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() { |