Hi folks,
first of all thanks for all the good things that went into 1.2.2b so far, it fixes some real nasty memory leaks present in 1.2.1 related to events.
However, there still seems to be something weird going on with custom (i.e. non standard) events. Consider the following example:
$(function() {
$('h1:first').bind('pseudoEvent', function() {});
});
If you keep refreshing a page with an h1 element and this code, you'll see memory going through the roof in IE6. (I highly recommend Drip's auto-refresh function for testing this).
Now even more disturbing is the fact that if I directly unbind the event like this:
$(function() {
$('h1:first').bind('pseudoEvent', function() {});
$('h1:first').unbind('pseudoEvent');
});
The memory leak still occurs.
If using custom events like this is not considered to be a good practice please let me know so I can refactor my code ; ).
Thanks, Felix