1

I made a plugin with Firebreath, with a custom event, and I would like to register a callback with YUI Event.

Y.on( "mycustomevent", callback, pluginNode );

Does not register my callback, whereas

pluginNode.addEventListener( "mycustomevent", callback, false );

does (on Firefox, not on IE).

How can I use YUI to register my event?

Georg Fritzsche
  • 97,545
  • 26
  • 194
  • 236
Jazz
  • 5,747
  • 5
  • 43
  • 55

1 Answers1

2

I found the solution. Adding my event to Y.Node.DOM_EVENTS, it works:

Y.mix( Y.Node.DOM_EVENTS, {
    mycustomevent: 1
} );
Jazz
  • 5,747
  • 5
  • 43
  • 55