Procházet zdrojové kódy

fix bug: - yy_modelIsEqual:

iwill před 9 roky
rodič
revize
0d8822aa4a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
 }