Loading ...
Sorry, an error occurred while loading the content.
 

e.currentTarget is undefined

Expand Messages
  • beawesomeinstead
    Hello everyone, I ve run into a problem getting trigger from event with e.currentTarget : http://pastie.org/351713 Does anyone know how to get trigger in this
    Message 1 of 2 , Jan 3, 2009
      Hello everyone,

      I've run into a problem getting trigger from event with
      e.currentTarget : http://pastie.org/351713

      Does anyone know how to get trigger in this case?

      Thanks!
    • Caridy Patino
      hello, in YUI 3.x you can get the target NODE object using this: function onClickEvent(e) { // e.target // target is a node, you can do this:
      Message 2 of 2 , Jan 3, 2009
        hello,

        in YUI 3.x you can get the target NODE object using this:

        function onClickEvent(e) {
        // e.target
        // target is a node, you can do this:
        e.target.addClass('highlight');
        }

        Best Regards,
        Caridy

        --- In yui3@yahoogroups.com, "beawesomeinstead" <beawesomeinstead@...>
        wrote:
        >
        > Hello everyone,
        >
        > I've run into a problem getting trigger from event with
        > e.currentTarget : http://pastie.org/351713
        >
        > Does anyone know how to get trigger in this case?
        >
        > Thanks!
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.