aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-11-09 11:09:07 -0500
committerJohn Resig <jeresig@gmail.com>2010-11-09 11:09:07 -0500
commitfb48ae8e6cca25fd29ef2b1eb23e9efa7b0eef7c (patch)
tree150abf047642cb0f1e8af19f1c3d0237fe07f9ff /src/effects.js
parentb5b3c73db3e4e615e504cd0af08ff6842b104542 (diff)
downloadjquery-fb48ae8e6cca25fd29ef2b1eb23e9efa7b0eef7c.tar.gz
jquery-fb48ae8e6cca25fd29ef2b1eb23e9efa7b0eef7c.zip
Make sure that when multiple variables are being declared that assignments are each done on their own line.
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/effects.js b/src/effects.js
index e95741c06..51ce0c577 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -342,6 +342,9 @@ jQuery.fx.prototype = {
// Start an animation from one number to another
custom: function( from, to, unit ) {
+ var self = this,
+ fx = jQuery.fx;
+
this.startTime = jQuery.now();
this.start = from;
this.end = to;
@@ -349,7 +352,6 @@ jQuery.fx.prototype = {
this.now = this.start;
this.pos = this.state = 0;
- var self = this, fx = jQuery.fx;
function t( gotoEnd ) {
return self.step(gotoEnd);
}
@@ -406,7 +408,9 @@ jQuery.fx.prototype = {
if ( done ) {
// Reset the overflow
if ( this.options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
- var elem = this.elem, options = this.options;
+ var elem = this.elem,
+ options = this.options;
+
jQuery.each( [ "", "X", "Y" ], function (index, value) {
elem.style[ "overflow" + value ] = options.overflow[index];
} );