I have defined two custom objects, whereby the first one is extending Ember.TextField and the second one Ember.Select. When the appropriate action is trigger in Ember.TextField I do some processing and if a requirement is satisfied then I propagate the action to the underlying controller using @sendAction("actionName").
However, when I try to do the same using Ember.Select I get the following Error:
Uncaught TypeError: Object [object Object] has no method 'sendAction'
and have to use @get("controller").send("actionName") instead. My mentor reckons that this inconsistency leads to spaghetti code and I do agree with him. Why can't I call @sendAction from Ember.Select, which is a preferred way I've come to understand, in Ember?
What is the main difference between the two?