Skip to main content

Bug Tracker

Side navigation

#4001 closed bug (fixed)

Opened January 27, 2009 04:45AM UTC

Closed February 13, 2009 04:15PM UTC

setInterval leak in function custom

Reported by: arrix Owned by:
Priority: major Milestone: 1.3.2
Component: effects Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:
Description

jQuery.fx.prototype.custom uses jQuery.timers.push(t) == 1 as a guard condition for the setInterval call, which is not robust enough. In the test case, stop, which empties jQuery.timers, is called before animate so that the check will pass even though there is already an active interval. This causes a leak because timerId gets overwritten every time and there is no way to clearInterval.

Attachments (2)
Change History (1)

Changed February 13, 2009 04:15PM UTC by john comment:1

resolution: → fixed
status: newclosed

Fixed in SVN rev [6194].