Order of parameters for a component makes a difference?


#1

Let’s say I have a computed property inside of my component:

value: function (key, value, previousValue) {
  // some stuff here
}.property('status', 'valueYes', 'valueNo')

And I use component like this

{{ my-component valueYes=model.format.valueYes value=model.value valueNo=model.format.valueNo }}

When property setter is invoked “valueNo” is yet undefined and “valueYes” is already there. Which means if “value” parameter is not the last one in the list of parameters, property would setup incorrectly. The fact that incorrect order of parameters breaks it is definitely wrong.

Am I doing something wrong and what would be the best way to do it?