Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jsb-xiakj authored and jsb-xiakj committed Jun 20, 2017
1 parent 38ecb8d commit 8a017b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions BigBang/BigBang.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ +(void)hookClass:(NSString*)hookString
});
class_addMethod(hookClass, @selector(forwardInvocation:), forwardInvocationImpl, "v@:@");
free(methods);
// NSString *superClassString = NSStringFromClass(object_getClass(hookClass));
// if (![superClassString isEqualToString:hookString]) {
// if (!class_isMetaClass(hookClass)) {
// [BigBang hookClass:superClassString];
// }
// }
NSString *superClassString = NSStringFromClass(object_getClass(hookClass));
if (![superClassString isEqualToString:hookString]) {
if (!class_isMetaClass(hookClass)) {
[BigBang hookClass:superClassString];
}
}
}

+ (id)argumentAtIndex:(NSUInteger)index
Expand Down

0 comments on commit 8a017b9

Please sign in to comment.