bean
bean copied to clipboard
Missing Support for DOM Level 2: handleEvent (Interface EventListener)
bean does not handle a neat pattern from the DOM Level 2 Events: Interface EventListener
It doesn't support handleEvent. I could just give a class instance to the event handler, I don't need to handle the scope.
Example:
class App
constructor: ->
@element = $ '#app'
@element.bind 'dblclick', this
handleEvent: (event) ->
switch event.type
when 'dblclick' then @addEmptyChild event.pageX, event.pageY`
I forked and will see if I can find a valid fix for nativeHandler and customHandler to handle that. Important to note is also the different scope handling, since handleEvent is not called with the event target as scope.
ahh yeah that is cool! -- it would be much appreciated if you could get that working! :)
@fat -- this looks like the thing i was showing you a while back...
on('click', {
handleEvent: function () {
}
}, false)
yep, i think so