Take metaLevel into account compiling DemandMatcher projections.
This commit is contained in:
parent
9d7dd37a37
commit
d00d205314
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue