From d00d205314265eec2ed73c736bda80f8016ad0bb Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sat, 6 Feb 2016 07:39:58 -0500 Subject: [PATCH] Take metaLevel into account compiling DemandMatcher projections. --- js/src/demand-matcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/demand-matcher.js b/js/src/demand-matcher.js index 6cf7040..fe95dd0 100644 --- a/js/src/demand-matcher.js +++ b/js/src/demand-matcher.js @@ -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(); }