15
15
*/
16
16
(function( $ ) {
17
17
18
- function modifier ( fn ) {
18
+ function spinner_modifier ( fn ) {
19
19
return function() {
20
20
var previous = this.element.val();
21
21
fn.apply( this, arguments );
@@ -391,7 +391,7 @@ $.widget( "ui.spinner", {
391
391
}
392
392
},
393
393
394
- _setOptions: modifier (function( options ) {
394
+ _setOptions: spinner_modifier (function( options ) {
395
395
this._super( options );
396
396
this._value( this.element.val() );
397
397
}),
@@ -462,7 +462,7 @@ $.widget( "ui.spinner", {
462
462
this.uiSpinner.replaceWith( this.element );
463
463
},
464
464
465
- stepUp: modifier (function( steps ) {
465
+ stepUp: spinner_modifier (function( steps ) {
466
466
this._stepUp( steps );
467
467
}),
468
468
_stepUp: function( steps ) {
@@ -472,7 +472,7 @@ $.widget( "ui.spinner", {
472
472
}
473
473
},
474
474
475
- stepDown: modifier (function( steps ) {
475
+ stepDown: spinner_modifier (function( steps ) {
476
476
this._stepDown( steps );
477
477
}),
478
478
_stepDown: function( steps ) {
@@ -482,19 +482,19 @@ $.widget( "ui.spinner", {
482
482
}
483
483
},
484
484
485
- pageUp: modifier (function( pages ) {
485
+ pageUp: spinner_modifier (function( pages ) {
486
486
this._stepUp( (pages || 1) * this.options.page );
487
487
}),
488
488
489
- pageDown: modifier (function( pages ) {
489
+ pageDown: spinner_modifier (function( pages ) {
490
490
this._stepDown( (pages || 1) * this.options.page );
491
491
}),
492
492
493
493
value: function( newVal ) {
494
494
if ( !arguments.length ) {
495
495
return this._parse( this.element.val() );
496
496
}
497
- modifier ( this._value ).call( this, newVal );
497
+ spinner_modifier ( this._value ).call( this, newVal );
498
498
},
499
499
500
500
widget: function() {
0 commit comments