0

I have problem with defining custom event in my app framework. Definition is correct, it works with calling it by this:

Y.one('#foo').on('event', fn)

but when I want to use it in app framework, in events section, it doesn't work. I tried with this code:

events: {
    '.button': {
        'event': 'functionName'
    },
    '.button': {
         click: 'otherFn'
}
Forin
  • 1,549
  • 2
  • 20
  • 44

1 Answers1

2

The App framework uses event delegation. You need to support delegation in your synthetic event. Check out Creating an Arrow Event for DOM Subscription for an example.

juandopazo
  • 6,283
  • 2
  • 26
  • 29