From 034e31fcb8ba8db9bd247b58d60ff7171a1fca2b Mon Sep 17 00:00:00 2001 From: Dustin Bachrach Date: Mon, 22 Dec 2014 12:02:29 -0800 Subject: [PATCH] Store property type information from most specific class instead of most generic class --- JSONModel/JSONModel/JSONModel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JSONModel/JSONModel/JSONModel.m b/JSONModel/JSONModel/JSONModel.m index 9e2524b0..17ce1064 100644 --- a/JSONModel/JSONModel/JSONModel.m +++ b/JSONModel/JSONModel/JSONModel.m @@ -670,7 +670,7 @@ -(void)__inspectProperties } //add the property object to the temp index - if (p) { + if (p && ![propertyIndex objectForKey:p.name]) { [propertyIndex setValue:p forKey:p.name]; } }