Changeset 4295
- Timestamp:
- 12/21/07 09:53:58 (1 year ago)
- Files:
-
- 1 modified
-
trunk/plugins/accordion/test/leak.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/accordion/test/leak.html
r4294 r4295 9 9 <script type="text/javascript" src="../lib/jquery.dimensions.js"></script> 10 10 <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 }); 23 26 </script> 24 27 </head>
