Jörn Zaefferer schrieb: >> $(this).click(function(e) { >> $(this).load(url, function() { >> >> // where's e? >> >> }); >> }); >> >> Can somebody explain that to me? >> >> I can get away with: >> >> $(this).click(function(e) { >> var trueClick = e.clientX; >> $(this).load(url, function() { >> >> // trueClick is here of course... >> >> }); >> }); > > It looks like the event object referenced from the closure is changed or > "deleted". jQuery shouldn't be responsible for that, though it does some > cleanup (from event.handle): > if (jQuery.browser.msie) event.target = event.preventDefault = > event.stopPropagation = null; > > I wonder if that cauld cause the problem you are experiencing.
No, it isn't. I have just checked that... so that's not a jQuery problem. Maybe my understanding of closures is the problem :-) -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/