Bug Tracker

Modify

Ticket #15 (closed bug: invalid)

Opened 8 years ago

Last modified 7 years ago

Memory leaks with ready()

Reported by: franck.marcia@… Owned by:
Priority: major Milestone: 1.0
Component: event Version: 1.0
Keywords: Cc:
Blocking: Blocked by:

Description

Memory leaks are detected by the extension Leak Monitor ( https://addons.mozilla.org/firefox/2490/) when one uses event ready().

Install it and load pages from jquery.com. It'll pop up this kind of message: (Leaks in window 0x2d27dd0: [+] [leaked object] (3d7d950,  http://proj.jquery.com/js/jquery.js, 14-14) = function () {

if ($.$$timer) {

clearInterval($.$$timer); $.$$timer = null; for (var i = 0; i < $.$$ready.length; i++) {

$.apply(document, $.$$ready[i]);

} $.$$ready = null;

}

}

[ ] $$guid = 1 [ ] prototype (2c59268) = [object Object]

Change History

comment:1 Changed 8 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid

This code is no longer in the current version of jQuery. All the hacky timer stuff was removed to make way for the stuff that actually worked.

comment:2 Changed 8 years ago by john

  • Version set to 1.0
  • Milestone set to 1.0

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.