diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-12-22 12:32:16 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-12-22 12:32:16 +0100 |
| commit | 15092ce68614c7bc0acf968daf3c936f6504c42f (patch) | |
| tree | ec965abcb6c6360e30d9989610e10bf1e62d1fb6 | |
| parent | 366e3e09cd941a4bb80afcba87157764b007770c (diff) | |
allow one level of binding outside IML current fragment or file
| -rw-r--r-- | src/Instantiator.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |