[jQuery] Fake event wont work on IE
Hi,
I wrote a plugin with fake event "tabload" which is called when a tab
content is loaded (a tab is a div, nothing more).
I got this :
jQuery.fn.tabload = function(f) {
return f ? this.bind('tabload', f) : this.trigger('tabload');
};
the trigger is jQuery(element).tabload();
Register an event take the form :
$('#tab1').tabload(function() {
alert('tab1');
});
It works fine with firefox and opera but (surprise!) not with IE.
I even tried this only code :
$('#tab3').bind('foo',function() { alert('foo'); });
$('#tab3').trigger('foo');
It works in FF, Opera and not IE.
Is there any to handle fake events in IE ?
PS: why "make lite" of SVN keeps unit tests in jquery.lite.js ?
Thanks,
--
Olivier Meunier
om@neokraft.net
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/