From 15092ce68614c7bc0acf968daf3c936f6504c42f Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Thu, 22 Dec 2016 12:32:16 +0100 Subject: [PATCH] allow one level of binding outside IML current fragment or file --- src/Instantiator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Instantiator.cs b/src/Instantiator.cs index 47fcb177..c90047dc 100644 --- a/src/Instantiator.cs +++ b/src/Instantiator.cs @@ -406,7 +406,7 @@ namespace Crow } } else if (bindingExp [0] == "..") { //search starting at current node int levelUp = bindingExp.Length - 1; - if (levelUp > ptr) + if (levelUp > ptr + 1) throw new Exception ("Binding error: try to bind outside IML source"); ptr -= levelUp; } -- 2.47.3