emberjs/data — Issue #74: Calling store.commit() many times should not do anything
Author: pixelcort
Created: 2012-02-01 22:24:16+00:00
State: open

If I have an observer like this:

isDirtyDidChange: function() { // Workaround https://github.com/emberjs/data/issues/72
if (this.get('isDirty') && !this.get('isSaving')) {
this.get('store').commit();
this.get('store').commit();
this.get('store').commit();
this.get('store').commit();
this.get('store').commit();
}
}.observes('isDirty'),

the underlying adapter's commitRecord should only be called once; not 5 times