Take metaLevel into account compiling DemandMatcher projections.

This commit is contained in:
Tony Garnock-Jones 2016-02-06 07:39:58 -05:00
parent 9d7dd37a37
commit d00d205314
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ function DemandMatcher(demandSpec, supplySpec, options) {
this.supplySpec = supplySpec;
this.demandPattern = Route.projectionToPattern(demandSpec);
this.supplyPattern = Route.projectionToPattern(supplySpec);
this.demandProjection = Route.compileProjection(demandSpec);
this.supplyProjection = Route.compileProjection(supplySpec);
this.demandProjection = Route.compileProjection(Patch.prependAtMeta(demandSpec, this.metaLevel));
this.supplyProjection = Route.compileProjection(Patch.prependAtMeta(supplySpec, this.metaLevel));
this.currentDemand = Immutable.Set();
this.currentSupply = Immutable.Set();
}