lundi 31 mars 2014

Best place to put the event listeners (Controller or View)

Hi,



I am new to EXTjs and I have a doubt regarding the placing of the event listener



So, If I have two different panels in my application and each have two buttons.



Should I define my my event listeners for the two buttons and their subsequent actions in the controller

OR

Should I be placing the listeners in the individual view itself?




Aucun commentaire:

Enregistrer un commentaire