From 01436bb5e0bffcabbc7fb6dcd524e45fbc6cb3b3 Mon Sep 17 00:00:00 2001 From: Kevin Destrem Date: Mon, 31 Oct 2016 17:36:17 +0900 Subject: [PATCH] Fix an issue with Tome's Root property --- Tomes/TomeArray.cs | 2 +- Tomes/TomeObject.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tomes/TomeArray.cs b/Tomes/TomeArray.cs index 3c36356..151edb3 100644 --- a/Tomes/TomeArray.cs +++ b/Tomes/TomeArray.cs @@ -31,7 +31,7 @@ public TomeArray(JArray data, JToken root) // for (var i = 0; i < data.Count; i += 1) { - Add(Tome.Conjure(data[i], root)); + Add(Tome.Conjure(data[i], this.root)); } // diff --git a/Tomes/TomeObject.cs b/Tomes/TomeObject.cs index 10f1f65..474cb0e 100644 --- a/Tomes/TomeObject.cs +++ b/Tomes/TomeObject.cs @@ -32,7 +32,7 @@ public TomeObject(JObject data, JToken root) // foreach (JProperty property in data.Properties()) { - Add(property.Name, Tome.Conjure(property.Value, root)); + Add(property.Name, Tome.Conjure(property.Value, this.root)); } //