I have the following: connect('my-anchor-id', 'onclick', function(e){ // Do some stuff e.stop(); });
I also want to click the anchor on page load, so I have this elsewhere: signal('my-anchor-id', 'onclick'); Unfortunately this throws the error 'this._event is undefined' when it encounters e.stop(); The following also throws the error connect('my-anchor-id', 'onclick', function(e){ // Do some stuff if(e){ e.stop(); } }); The only thing that works is the hacky: connect('my-anchor-id', 'onclick', function(e){ // Do some stuff if(e._event){ e.stop(); } }); Is this a rough edge or am I doing it wrong? Eoghan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---