Bug Tracker

Changes between Initial Version and Version 1 of Ticket #8287


Ignore:
Timestamp:
Feb 15, 2011, 4:54:17 PM (9 years ago)
Author:
jitter
Comment:

I tried a simple page with the exe found here . Didn't show any leaks for me with 1.5 .

Please submit a reduced test case, which reproduces the issue you are experiencing, on http://jsfiddle.net. So that we can investigate this issue further. Also make sure to read the link given below, in order to provide a most useful bug report.


How to report bugs

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8287

    • Property Owner set to ss@…
    • Property Status changed from new to pending
    • Property Component changed from unfiled to core
  • Ticket #8287 – Description

    initial v1  
    11The IE leak detector identifies two areas where JQuery apparently fails to remove onload/onunload handlers:
    22
    3 in the bindReady function, replaced window.attachEvent("onload" jQuery.ready) with:
    4 
    5               window.attachEvent( "onload", function() {
    6                   window.detachEvent("onload", arguments.callee);
    7                   jQuery.ready();
    8               });
     3in the bindReady function, replaced `window.attachEvent("onload" jQuery.ready)` with:
     4{{{
     5window.attachEvent( "onload", function() {
     6    window.detachEvent("onload", arguments.callee);
     7    jQuery.ready();
     8});
     9}}}
    910 
    1011
    11 in the // Prevent memory leaks in IE section, before the onunload function close added:
    12 
    13         window.detachEvent('onunload', arguments.callee);
    14         window.$ = null;
    15         window.jQuery = null;
    16 
     12in the `// Prevent memory leaks in IE section`, before the onunload function close added:
     13{{{
     14window.detachEvent('onunload', arguments.callee);
     15window.$ = null;
     16window.jQuery = null;
     17}}}