Fix breaking test in Chrome.

This commit is contained in:
Anton M 2011-02-14 00:37:07 +01:00
parent c5edf982d5
commit 659773348f
2 changed files with 3 additions and 3 deletions

4
src/effects.js vendored
View file

@ -189,7 +189,7 @@ jQuery.fn.extend({
if ( parts ) {
var end = parseFloat( parts[2] ),
unit = parts[3] || jQuery.cssNumber[ name ] ? "" : "px";
unit = parts[3] || ( jQuery.cssNumber[ name ] ? "" : "px" );
// We need to compute starting value
if ( unit !== "px" ) {
@ -348,7 +348,7 @@ jQuery.fx.prototype = {
this.startTime = jQuery.now();
this.start = from;
this.end = to;
this.unit = unit || this.unit || jQuery.cssNumber[ this.prop ] ? "" : "px";
this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
this.now = this.start;
this.pos = this.state = 0;