X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Feffects.js;h=51ce0c5772c54dcf6a1e94fc657c917ccbbf06c3;hb=fb48ae8e6cca25fd29ef2b1eb23e9efa7b0eef7c;hp=e95741c065083da7038f2dcda44ce5d2dfa9859d;hpb=b5b3c73db3e4e615e504cd0af08ff6842b104542;p=jquery.git diff --git a/src/effects.js b/src/effects.js index e95741c..51ce0c5 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]; } );