deftjs / DeftJS5

Deft JS for Ext JS 5
MIT License
34 stars 13 forks source link

Confirm new Sencha VC event handling still works #3

Closed brian428 closed 10 years ago

brian428 commented 10 years ago

Ensure that the built-in Sencha VC event handling still works correctly when using the Deft JS VC.

benquarmby commented 10 years ago

This works for me in the alpha. Event listener blocks throughout the view hierarchy are tied to the Deft 5 VC.

If the listeners are at the top level (directly on the view class prototype) then an explicit 'controller' scope is required. Otherwise it expects to find handlers on the view:

listeners: {
    beforerender: 'onViewBeforeRender',
    scope: 'controller'
}
brian428 commented 10 years ago

Right, all of the view event handling is now done by the underlying Sencha ViewController class.