Skip to content

Commit

Permalink
Do not propagate dataHashChanges to children
Browse files Browse the repository at this point in the history
Calling propagate takes a long time on heavily nested data structures
(such as trees).
  • Loading branch information
blt04 authored and Roy Daniels committed Dec 28, 2011
1 parent 282fcf7 commit 7009ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ember-datastore/lib/system/nested_store.js
Expand Up @@ -438,7 +438,7 @@ Ember.NestedStore = Ember.Store.extend(
changes.add(storeKey);
this._notifyRecordPropertyChange(storeKey, statusOnly, key);

this._propagateToChildren(storeKey, iter);
//this._propagateToChildren(storeKey, iter);
}

set(this, 'hasChanges', YES);
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-datastore/lib/system/store.js
Expand Up @@ -521,7 +521,7 @@ Ember.Store = Ember.Object.extend( /** @scope Ember.Store.prototype */ {
this.revisions[storeKey] = rev;
this._notifyRecordPropertyChange(storeKey, statusOnly, key);

this._propagateToChildren(storeKey, iter);
//this._propagateToChildren(storeKey, iter);
}

return this ;
Expand Down

0 comments on commit 7009ec6

Please sign in to comment.