git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix breaking test in Chrome.
[jquery.git]
/
src
/
effects.js
diff --git
a/src/effects.js
b/src/effects.js
index
0b08bc2
..
fd832ce
100644
(file)
--- a/
src/effects.js
+++ b/
src/effects.js
@@
-189,7
+189,7
@@
jQuery.fn.extend({
if ( parts ) {
var end = parseFloat( parts[2] ),
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" ) {
// 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.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;
this.now = this.start;
this.pos = this.state = 0;