jeudi 11 janvier 2018

Ember: How to determine which property changed in a multi-property observer

With something like the following how can I determine which of the three properties has changed without resorting to something tedious like printing out all the values each time, or creating three separate observers?

variableObserver: Ember.observer('variable.{name,value,type}', function() {

  // which property changed?

}),




Aucun commentaire:

Enregistrer un commentaire