aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-11-07 21:14:23 +0100
committerOleg <markelog@gmail.com>2013-11-07 22:09:33 +0100
commit22120cea66ad88f83b96535416f5baab605fe530 (patch)
tree31f2ea0dd6d9f2298c5ade010dcbf9e62ade8e8e /src/effects.js
parentbcae4270151574d077fb360fd42416587f07c686 (diff)
downloadjquery-22120cea66ad88f83b96535416f5baab605fe530.tar.gz
jquery-22120cea66ad88f83b96535416f5baab605fe530.zip
Fix some code style inconsistencies
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/effects.js b/src/effects.js
index 582870fe9..bd2e4eef9 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -21,7 +21,7 @@ var
rrun = /queueHooks$/,
animationPrefilters = [ defaultPrefilter ],
tweeners = {
- "*": [function( prop, value ) {
+ "*": [ function( prop, value ) {
var tween = this.createTween( prop, value ),
target = tween.cur(),
parts = rfxnum.exec( value ),
@@ -68,7 +68,7 @@ var
}
return tween;
- }]
+ } ]
};
// Animations created synchronously will run synchronously
@@ -87,8 +87,8 @@ function genFx( type, includeWidth ) {
// if we include width, step value is 1 to do all cssExpand values,
// if we don't include width, step value is 2 to skip over Left and Right
- includeWidth = includeWidth? 1 : 0;
- for( ; i < 4 ; i += 2 - includeWidth ) {
+ includeWidth = includeWidth ? 1 : 0;
+ for ( ; i < 4 ; i += 2 - includeWidth ) {
which = cssExpand[ i ];
attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
}
@@ -100,7 +100,6 @@ function genFx( type, includeWidth ) {
return attrs;
}
-
function createTween( value, prop, animation ) {
var tween,
collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
@@ -189,7 +188,6 @@ function defaultPrefilter( elem, props, opts ) {
}
}
-
// show/hide pass
for ( prop in props ) {
value = props[ prop ];