Skip to content

Commit

Permalink
Merge pull request #54 from kefniark/fix/TomesOnChanged
Browse files Browse the repository at this point in the history
Tomes > EmitToParents
  • Loading branch information
AlmirKadric authored Oct 31, 2016
2 parents 467e842 + 10beb08 commit f3498c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tomes/TomeArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public TomeArray(JArray data, JToken root)
//
private void EmitToParents(JToken oldValue)
{
if (this != root)
if (!ReferenceEquals(this, root))
{
Tome.EmitParentChange(Parent);
}
Expand Down
2 changes: 1 addition & 1 deletion Tomes/TomeObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public TomeObject(JObject data, JToken root)
//
private void EmitToParents(JToken oldValue)
{
if (this != root)
if (!ReferenceEquals(this, root))
{
Tome.EmitParentChange(Parent);
}
Expand Down
2 changes: 1 addition & 1 deletion Tomes/TomeValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public TomeValue(JValue value, JToken root) : base(value)
//
private void EmitToParents(JToken oldValue)
{
if (!Equals(this, root))
if (!ReferenceEquals(this, root))
{
Tome.EmitParentChange(Parent);
}
Expand Down

0 comments on commit f3498c7

Please sign in to comment.