Permalink
Browse files

Merge pull request #60 from jrogelstad/unstable

tweak to reduce notification churn
  • Loading branch information...
erichocean committed Mar 28, 2012
2 parents cdbece4 + 1265b54 commit 3869313a3788d1dce9fc3478443c5e1940ea433c
Showing with 2 additions and 1 deletion.
  1. +2 −1 datastore/system/store.js
@@ -1370,7 +1370,8 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
prs = this.parentRecords || {};
// first rid of the old parent
oldPk = crs[childStoreKey];
- if (oldPk){
+ if (oldPk && oldPk === parentStoreKey) return;
+ else if (oldPk){
oldChildren = prs[oldPk];
delete oldChildren[childStoreKey];
// this.recordDidChange(null, null, oldPk, key);

0 comments on commit 3869313

Please sign in to comment.