Skip to content

Commit c32f350

Browse files
committed
Merge pull request CoderMJLee#145 from Jianing93/master
修改拼写错误
2 parents 614948b + 7b46948 commit c32f350

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

MJExtension/NSObject+MJKeyValue.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#import "MJType.h"
1313
#import "MJExtensionConst.h"
1414
#import "MJFoundation.h"
15-
#import "NSString+MJExtensino.h"
15+
#import "NSString+MJExtension.h"
1616

1717
@implementation NSObject (MJKeyValue)
1818

MJExtension/NSObject+MJProperty.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ typedef NSString * (^MJReplacedKeyFromPropertyName121)(NSString *propertyName);
2929
/** 数组中需要转换的模型类 */
3030
typedef NSDictionary * (^MJObjectClassInArray)();
3131
/** 用于过滤字典中的值 */
32-
typedef id (^MJNewValueFormOldValue)(id object, id oldValue, MJProperty *property);
32+
typedef id (^MJNewValueFromOldValue)(id object, id oldValue, MJProperty *property);
3333

3434
/** 这个数组中的属性名才会进行字典和模型的转换 */
3535
typedef NSArray * (^MJAllowedPropertyNames)();
@@ -60,7 +60,7 @@ typedef NSArray * (^MJIgnoredCodingPropertyNames)();
6060
*
6161
* @param newValueFormOldValue 用于过滤字典中的值
6262
*/
63-
+ (void)setupNewValueFormOldValue:(MJNewValueFormOldValue)newValueFormOldValue;
63+
+ (void)setupNewValueFormOldValue:(MJNewValueFromOldValue)newValueFormOldValue;
6464
+ (id)getNewValueFormOldValue:(__weak id)oldValue object:(__weak id)object property:(__weak MJProperty *)property;
6565

6666
#pragma mark - key配置

MJExtension/NSObject+MJProperty.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ + (NSMutableArray *)properties
198198
}
199199

200200
#pragma mark - 新值配置
201-
+ (void)setupNewValueFormOldValue:(MJNewValueFormOldValue)newValueFormOldValue
201+
+ (void)setupNewValueFormOldValue:(MJNewValueFromOldValue)newValueFormOldValue
202202
{
203203
objc_setAssociatedObject(self, &MJNewValueFromOldValueKey, newValueFormOldValue, OBJC_ASSOCIATION_COPY_NONATOMIC);
204204
}
@@ -207,7 +207,7 @@ + (id)getNewValueFormOldValue:(__weak id)oldValue object:(__weak id)object prope
207207
{
208208
__block id newValue = nil;
209209
[self enumerateAllClasses:^(__unsafe_unretained Class c, BOOL *stop) {
210-
MJNewValueFormOldValue block = objc_getAssociatedObject(c, &MJNewValueFromOldValueKey);
210+
MJNewValueFromOldValue block = objc_getAssociatedObject(c, &MJNewValueFromOldValueKey);
211211
if (block) {
212212
newValue = block(object, oldValue, property);
213213
*stop = YES;

0 commit comments

Comments
 (0)