setInterval leak in function custom (fx.js)

setInterval leak in function custom (fx.js)

Hi,<div>  I noticed a constant 50% CPU usage in one of my project about 2 weeks ago and looked into the issue.</div><div>
</div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: 'Trebuchet MS'; font-size: 13px; line-height: 19px; ">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.</span></blockquote>
<div>
</div><div>The ticket is here <a href="http://dev.jquery.com/ticket/4001">http://dev.jquery.com/ticket/4001</a> </div><div><br clear="all">Please take a look.</div><div>Thanks
--
Arrix
</div></div>