Bug Tracker

Changeset 4295

Show
Ignore:
Timestamp:
12/21/07 09:53:58 (1 year ago)
Author:
joern.zaefferer
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/accordion/test/leak.html

    r4294 r4295  
    99    <script type="text/javascript" src="../lib/jquery.dimensions.js"></script> 
    1010    <script type="text/javascript"> 
    11     $.fn.extend({ 
    12         leak: function() { 
    13             var container = this; 
    14             return this.bind("click", function clickHandler() {}); 
    15         } 
    16     }); 
    17      
    18     $(function() { 
    19         jQuery('#list2') 
    20             .leak() 
    21             .change(function() {}); 
    22     }); 
     11$.fn.extend({ 
     12    leak: function() { 
     13        // removing this line stops the leak 
     14        var container = this; 
     15        return this.bind("click", function clickHandler() {}); 
     16    } 
     17}); 
     18 
     19$(function() { 
     20    jQuery('#list2') 
     21        // removing this, too 
     22        .leak() 
     23        // and this as well! 
     24        .change(function() {}); 
     25}); 
    2326    </script> 
    2427</head>