Skip to content

Commit

Permalink
Fix bug in commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultz committed Aug 10, 2011
1 parent 0ae1245 commit f4e5eb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mesh/model/Store.as
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package mesh.model
import flash.events.EventDispatcher;
import flash.utils.Dictionary;

import mesh.core.array.intersection;
import mesh.core.reflection.newInstance;
import mesh.model.query.Queries;
import mesh.model.query.Query;
Expand Down Expand Up @@ -63,7 +64,7 @@ package mesh.model
*/
public function commit(...entities):void
{
_dataSource.commit(this, entities.length == 0 ? _index.toArray() : entities);
_dataSource.commit(this, entities.length == 0 ? _changes.toArray() : entities);
}

/**
Expand Down

0 comments on commit f4e5eb1

Please sign in to comment.