aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-08-24 23:10:52 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-09-11 08:36:41 -0400
commit013a411a482468b06159fa85e932236df152fb9c (patch)
tree91def9bd32d151247715bb914c7067cca50664df
parent3d43f0d7a4ac799b756e500341beb02f439a8d6c (diff)
downloadjquery-ui-013a411a482468b06159fa85e932236df152fb9c.tar.gz
jquery-ui-013a411a482468b06159fa85e932236df152fb9c.zip
Spinner: Update to use camelcase identifiers
-rw-r--r--ui/widgets/spinner.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/widgets/spinner.js b/ui/widgets/spinner.js
index a64d46c76..381c052bd 100644
--- a/ui/widgets/spinner.js
+++ b/ui/widgets/spinner.js
@@ -35,7 +35,7 @@
}
}( function( $ ) {
-function spinner_modifier( fn ) {
+function spinnerModifer( fn ) {
return function() {
var previous = this.element.val();
fn.apply( this, arguments );
@@ -435,7 +435,7 @@ $.widget( "ui.spinner", {
}
},
- _setOptions: spinner_modifier( function( options ) {
+ _setOptions: spinnerModifer( function( options ) {
this._super( options );
} ),
@@ -502,7 +502,7 @@ $.widget( "ui.spinner", {
this.uiSpinner.replaceWith( this.element );
},
- stepUp: spinner_modifier( function( steps ) {
+ stepUp: spinnerModifer( function( steps ) {
this._stepUp( steps );
} ),
_stepUp: function( steps ) {
@@ -512,7 +512,7 @@ $.widget( "ui.spinner", {
}
},
- stepDown: spinner_modifier( function( steps ) {
+ stepDown: spinnerModifer( function( steps ) {
this._stepDown( steps );
} ),
_stepDown: function( steps ) {
@@ -522,11 +522,11 @@ $.widget( "ui.spinner", {
}
},
- pageUp: spinner_modifier( function( pages ) {
+ pageUp: spinnerModifer( function( pages ) {
this._stepUp( ( pages || 1 ) * this.options.page );
} ),
- pageDown: spinner_modifier( function( pages ) {
+ pageDown: spinnerModifer( function( pages ) {
this._stepDown( ( pages || 1 ) * this.options.page );
} ),
@@ -534,7 +534,7 @@ $.widget( "ui.spinner", {
if ( !arguments.length ) {
return this._parse( this.element.val() );
}
- spinner_modifier( this._value ).call( this, newVal );
+ spinnerModifer( this._value ).call( this, newVal );
},
widget: function() {