The issue I am running into is that when observing on an ObjectController, after calling model.saveI()
an observe is getting triggered infinitely because this.store.find()
is triggering an update of the property I am observing.
App.IndexController = Ember.ObjectController.extend({
// this gets triggered by model.save()
search: function() {
// this triggers the observes('name') inf
this.store.find('member');
}.observes('name'),
actions: {
save: function() {
this.get('model').save();
}
}
});
Any ideas about how to avoid this? Thanks!
Here is a jsbin showing the issue with some debugging to showcase the issue: http://emberjs.jsbin.com/hukaqu/4/edit