Skip to content

Commit

Permalink
Add preprocessor definition for disabling container state changes (fa…
Browse files Browse the repository at this point in the history
  • Loading branch information
levi authored and Adlai Holler committed Sep 5, 2016
1 parent 76107ae commit 5db5780
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
#import "_ASAsyncTransactionGroup.h"
#import <objc/runtime.h>

#ifndef ASASYNCTRANSACTIONCONTAINER_FORWARD_STATE_CHANGE
#define ASASYNCTRANSACTIONCONTAINER_FORWARD_STATE_CHANGE 1
#endif

static const char *ASDisplayNodeAssociatedTransactionsKey = "ASAssociatedTransactions";
static const char *ASDisplayNodeAssociatedCurrentTransactionKey = "ASAssociatedCurrentTransaction";

Expand Down Expand Up @@ -81,10 +85,12 @@ - (void)asyncdisplaykit_cancelAsyncTransactions

- (void)asyncdisplaykit_asyncTransactionContainerStateDidChange
{
#if ASASYNCTRANSACTIONCONTAINER_FORWARD_STATE_CHANGE
id delegate = self.delegate;
if ([delegate respondsToSelector:@selector(asyncdisplaykit_asyncTransactionContainerStateDidChange)]) {
[delegate asyncdisplaykit_asyncTransactionContainerStateDidChange];
}
#endif
}

- (_ASAsyncTransaction *)asyncdisplaykit_asyncTransaction
Expand Down

0 comments on commit 5db5780

Please sign in to comment.