Bug Tracker

Opened 12 years ago

Closed 12 years ago

#7162 closed enhancement (invalid)

animate: un-needed code line

Reported by: Taai Owned by:
Priority: low Milestone: 1.4.3
Component: effects Version: 1.4.2
Keywords: animate Cc:
Blocked by: Blocking:


It seems that there is an un-needed code line in jQuery 1.4.2 in line 5611.

self.style[ name ] = (end
1) + unit; isn't this un-needed ???
start = ((end
1) / e.cur(true)) * start;
  1. self.style[ name ] = start + unit; because statement is set here again !!!

Change History (1)

comment:1 Changed 12 years ago by john

Resolution: invalid
Status: newclosed

Umm, no. If you look at the middle line we're calling e.cur(true) which is getting us the computed value of the element for that property. After it's done we reset the display to the original value.

Note: See TracTickets for help on using tickets.