Explorar o código

fix bug: - yy_modelIsEqual:

iwill %!s(int64=9) %!d(string=hai) anos
pai
achega
0d8822aa4a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)];
         if (this == that) continue;
         if (this == nil || that == nil) return NO;
-        if ([this isEqual:that]) continue;
+        if (![this isEqual:that]) return NO;
     }
     return YES;
 }