}
}( function( $ ) {
-function spinnerModifer( fn ) {
+function spinnerModifier( fn ) {
return function() {
var previous = this.element.val();
fn.apply( this, arguments );
this.buttons.button( value ? "disable" : "enable" );
},
- _setOptions: spinnerModifer( function( options ) {
+ _setOptions: spinnerModifier( function( options ) {
this._super( options );
} ),
this.uiSpinner.replaceWith( this.element );
},
- stepUp: spinnerModifer( function( steps ) {
+ stepUp: spinnerModifier( function( steps ) {
this._stepUp( steps );
} ),
_stepUp: function( steps ) {
}
},
- stepDown: spinnerModifer( function( steps ) {
+ stepDown: spinnerModifier( function( steps ) {
this._stepDown( steps );
} ),
_stepDown: function( steps ) {
}
},
- 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 );
} ),
if ( !arguments.length ) {
return this._parse( this.element.val() );
}
- spinnerModifer( this._value ).call( this, newVal );
+ spinnerModifier( this._value ).call( this, newVal );
},
widget: function() {