From d3c2ba4eeebd8a08dca6cb15d6ee377af4698e52 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Thu, 30 Jul 2015 16:12:53 -0400 Subject: [PATCH] fix(html-behavior): do not override DOMBoundary for containerless elements --- src/html-behavior.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/html-behavior.js b/src/html-behavior.js index 34b97925..de5f578f 100644 --- a/src/html-behavior.js +++ b/src/html-behavior.js @@ -237,7 +237,9 @@ export class HtmlBehaviorResource { host = element; } - container.registerInstance(DOMBoundary, host); + if(instruction.anchorIsContainer){ + container.registerInstance(DOMBoundary, host); + } } let executionContext = instruction.executionContext || container.get(this.target),