Skip to content

Commit

Permalink
Fix load bug in results list
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultz committed Mar 7, 2012
1 parent d0ba554 commit a3e843a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/mesh/model/store/ResultsList.as
Expand Up @@ -3,6 +3,7 @@ package mesh.model.store
import mesh.core.List;
import mesh.mesh_internal;
import mesh.model.Record;
import mesh.operations.FinishedOperationEvent;
import mesh.operations.Operation;

import mx.collections.IList;
Expand All @@ -19,6 +20,10 @@ package mesh.model.store
super();

_loadOperation = loadOperation;
_loadOperation.addEventListener(FinishedOperationEvent.FINISHED, function(event:FinishedOperationEvent):void
{
_isLoaded = event.successful;
});

_resultsWrapper = new ListCollectionView(results);
_resultsWrapper.filterFunction = filterRecord;
Expand Down
2 changes: 0 additions & 2 deletions tests/mesh/model/store/ResultsListTests.as
Expand Up @@ -11,14 +11,12 @@ package mesh.model.store

public class ResultsListTests
{
private var _person:Object;
private var _fixtures:FixtureDataSource;
private var _records:RecordCache;

[Before]
public function setup():void
{
_person = {id:1, firstName:"Jimmy", lastName:"Page"};
_fixtures = new FixtureDataSource(Person);
_records = new RecordCache(new Store(_fixtures), _fixtures, new DataCache());
}
Expand Down

0 comments on commit a3e843a

Please sign in to comment.