Just a partial auto-response, for future reference. currentTarget is null if Firefox is used.
To make sure it is cross-browser, this is what is needed: var el = event.target || event.srcElement; On Wed, Jan 22, 2014 at 4:25 PM, Olivier Percebois-Garve < [email protected]> wrote: > Hi Sander, > > thanks for help. currentTarget comes out with the value null. > > I have that in a plunkr : http://plnkr.co/edit/zbDjT3?p=preview > > (click on the stuff with the red border, then on a list element. The first > li contains spans, if those are clicked, no way to get the li) > > -olivvv > > > > On Wed, Jan 22, 2014 at 4:17 PM, Sander Elias <[email protected]>wrote: > >> Hi Olivier, >> >> Did you examine the event in your debugger? >> Angular events are dressed up dom events, have a look at the documentation >> on click >> events<https://developer.mozilla.org/en-US/docs/Web/Reference/Events/click?redirectlocale=en-US&redirectslug=Web%2FAPI%2FGlobalEventHandlers.click> >> . >> you need $event.currentTarget. >> >> Regards >> Sander >> >> -- >> You received this message because you are subscribed to the Google Groups >> "AngularJS" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
