mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Spinner: Fix typo
Closes gh-1764
This commit is contained in:
parent
9c5ce4c3e9
commit
863a49f95b
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user