Skip to content

Commit

Permalink
Put that back
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai-Holler committed Nov 2, 2018
1 parent f39979e commit eb66f41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/ASDisplayNodeAppearanceTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#import <AsyncDisplayKit/UIView+ASConvenience.h>

// helper functions
IMP theClass_replaceMethodWithBlock(Class theClass, SEL originalSelector, id block);
IMP theClass_replaceMethodWithBlock(Class theClass, SEL originalSelector, id block)
IMP class_replaceMethodWithBlock(Class theClass, SEL originalSelector, id block);
IMP class_replaceMethodWithBlock(Class theClass, SEL originalSelector, id block)
{
IMP newImplementation = imp_implementationWithBlock(block);
Method method = class_getInstanceMethod(theClass, originalSelector);
Expand All @@ -34,7 +34,7 @@ static dispatch_block_t modifyMethodByAddingPrologueBlockAndReturnCleanupBlock(C
block(swizzedSelf);
((void(*)(id, SEL))originalImp)(swizzedSelf, originalSelector);
};
originalImp = theClass_replaceMethodWithBlock(theClass, originalSelector, blockActualSwizzle);
originalImp = class_replaceMethodWithBlock(theClass, originalSelector, blockActualSwizzle);
void (^cleanupBlock)(void) = ^{
// restore original method
Method method = class_getInstanceMethod(theClass, originalSelector);
Expand Down

0 comments on commit eb66f41

Please sign in to comment.