Skip to content

Commit

Permalink
Only commit intersetion of changed entities
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultz committed Aug 13, 2011
1 parent c5f8dad commit 8202b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mesh/model/Store.as
Expand Up @@ -64,7 +64,7 @@ package mesh.model
*/
public function commit(...entities):void
{
_dataSource.commit(this, entities.length == 0 ? _changes.toArray() : entities);
_dataSource.commit(this, entities.length == 0 ? _changes.toArray() : intersection(entities, _changes.toArray()));
}

/**
Expand Down

0 comments on commit 8202b08

Please sign in to comment.