浏览代码

fix bug: - yy_modelIsEqual:

iwill 9 年之前
父节点
当前提交
0d8822aa4a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      YYModel/NSObject+YYModel.m

+ 1 - 1
YYModel/NSObject+YYModel.m

@@ -1547,7 +1547,7 @@ static id ModelToJSONObjectRecursive(NSObject *model) {
         id that = [model valueForKey:NSStringFromSelector(propertyMeta->_getter)];
         id that = [model valueForKey:NSStringFromSelector(propertyMeta->_getter)];
         if (this == that) continue;
         if (this == that) continue;
         if (this == nil || that == nil) return NO;
         if (this == nil || that == nil) return NO;
-        if ([this isEqual:that]) continue;
+        if (![this isEqual:that]) return NO;
     }
     }
     return YES;
     return YES;
 }
 }