浏览代码

spelling correction

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

+ 3 - 3
YYModel/NSObject+YYModel.m

@@ -342,7 +342,7 @@ static force_inline id YYValueForKeyPath(__unsafe_unretained NSDictionary *dic,
     /// Model class type.
     YYEncodingNSType _nsType;
     
-    BOOL _hasCustomTransformFromDictonary;
+    BOOL _hasCustomTransformFromDictionary;
     BOOL _hasCustomTransformToDictionary;
 }
 @end
@@ -450,7 +450,7 @@ static force_inline id YYValueForKeyPath(__unsafe_unretained NSDictionary *dic,
     if(keyPathPropertyMetas) _keyPathPropertyMetas = keyPathPropertyMetas;
     _keyMappedCount = _allPropertyMetas.count;
     _nsType = YYClassGetNSType(cls);
-    _hasCustomTransformFromDictonary = ([cls instancesRespondToSelector:@selector(modelCustomTransformFromDictionary:)]);
+    _hasCustomTransformFromDictionary = ([cls instancesRespondToSelector:@selector(modelCustomTransformFromDictionary:)]);
     _hasCustomTransformToDictionary = ([cls instancesRespondToSelector:@selector(modelCustomTransformToDictionary:)]);
     
     return self;
@@ -1141,7 +1141,7 @@ static id ModelToJSONObjectRecursive(NSObject *model) {
                              &context);
     }
     
-    if (modelMeta->_hasCustomTransformFromDictonary) {
+    if (modelMeta->_hasCustomTransformFromDictionary) {
         return [((id<YYModel>)self) modelCustomTransformFromDictionary:dic];
     }
     return YES;