dimanche 23 novembre 2014

ViewController: two change events in the same listeners

Hi!

Suppose in a viewcontroller we have two change methods:



Code:



onChangeOne:function(field, newValue, eOpts ){
...
}


onChangeTwo:function(field, newValue, eOpts ){
...
}

Sometimes, in a particular form field, I have to call the two change events.

The following solutions do not work:



Code:



listeners:{
change: 'onChangeOne',
change: 'onChangeTwo',
scope:'controller',
}


listeners:{
change: {'onChangeOne','onChangeTwo'},
scope:'controller',
}

How to do it?

Thanks in advance.






ViewController: two change events in the same listeners

Aucun commentaire:

Enregistrer un commentaire