Bail display if parent nodes raster children

fixes #244
This commit is contained in:
Ryan Nystrom 2015-01-27 09:46:12 -08:00
parent f200f9504a
commit 6bc94190e8

View File

@ -26,6 +26,10 @@
- (void)display
{
if (![self __shouldLoadViewOrLayer]) {
return;
}
ASDisplayNodeAssertMainThread();
ASDisplayNodeAssert(self.nodeLoaded, @"backing store must be loaded before calling -display");
@ -45,6 +49,10 @@
- (void)recursivelyDisplay
{
if (![self __shouldLoadViewOrLayer]) {
return;
}
for (ASDisplayNode *node in self.subnodes) {
[node recursivelyDisplay];
}