Hey,
I’m migrating from Ember CLI 1.x to 2.0 and thus migrating from Ember 1.8.1 to 1.10 as well. It looks like observers in one of my views stopped working. I’ve a got the following view (simplified):
import Ember from 'ember';
export default Ember.View.extend({
didInsertElement: function () {
this.set('path', this.$().find('path'));
},
sendingProgressDidChange: function () {
var progress = this.get('controller.model.transfer.sendingProgress');
this._calculateSVGAnim(progress);
}.observes('controller.model.transfer.sendingProgress'),
receivingProgressDidChange: function () {
var progress = this.get('controller.model.transfer.receivingProgress');
this._calculateSVGAnim(progress);
}.observes('controller.model.transfer.receivingProgress')
});
After updating Ember to 1.10, both sendingProgressDidChange
and receivingProgressDidChange
observers stopped working. However, if I add this.get('controller')
to didInsertElement
function, they work again…
Any ideas what can be wrong?