Children in

This commit is contained in:
osdnk
2018-10-08 12:20:56 +02:00
parent ca03497813
commit ff978853cc
4 changed files with 5 additions and 5 deletions

View File

@@ -136,7 +136,7 @@ public class ProceduralNode extends Node {
result.add(context.parent);
return result;
}
return null;
return mChildren;
}
@Override

View File

@@ -33,7 +33,7 @@ typedef NSNumber* REANodeID;
- (void)addChild:(REANode *)child NS_REQUIRES_SUPER;
- (void)removeChild:(REANode *)child NS_REQUIRES_SUPER;
- (NSMutableArray *)getChildenByContext:(REAEvalContext *) evalContext;
- (NSMutableArray *)getChildrenInContext:(REAEvalContext *) evalContext;
- (void)dangerouslyRescheduleEvaluate:(REAEvalContext *)evalContext;
- (void)forceUpdateMemoizedValue:(id)value

View File

@@ -74,7 +74,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
}
}
-(NSMutableArray *)getChildenByContext:(REAEvalContext *) evalContext {
-(NSMutableArray *)getChildrenInContext:(REAEvalContext *) evalContext {
return _childNodes;
}
@@ -117,7 +117,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
}
REAEvalContext *currentContext = contexts.lastObject;
NSMutableArray *__nullable children = [node getChildenByContext:currentContext];
NSMutableArray *__nullable children = [node getChildrenInContext:currentContext];
REAEvalContext *newContext = [node switchContextWhileUpdatingIfNeeded:currentContext withLastVisitedNode:lastVisited];
BOOL pushedNewContext = false;
REAEvalContext *__nullable contextPopped = NULL;

View File

@@ -21,7 +21,7 @@
return self;
}
- (NSMutableArray *)getChildenByContext:(REAEvalContext *) evalContext {
- (NSMutableArray *)getChildrenInContext:(REAEvalContext *) evalContext {
if (evalContext.parent != NULL) {
NSMutableArray *result = [NSMutableArray init];
[result addObject:evalContext.parent];