Fixing an issue with the mirroring

This commit is contained in:
Ryan Coyne 2017-11-23 12:56:11 -05:00
parent 11d32ea7b6
commit 8616a818c1
1 changed files with 2 additions and 7 deletions

View File

@ -43,15 +43,10 @@ open class CCXMirror: CCXMirroring {
currentContext = currentContext?.superclassMirror currentContext = currentContext?.superclassMirror
} }
// Make sure we aren't adding in the CCXMirror or StORM mirrors: // Make sure we aren't adding in the CCXMirror or StORM mirrors:
switch currentContext?.subjectType {
case is CCXMirror.Type?, is StORM.Type?:
break
default:
if currentContext.isNotNil { if currentContext.isNotNil {
mirrors.append(currentContext!) mirrors.append(currentContext!)
} }
} }
}
return mirrors return mirrors
} }
/// This returns all the children, even all the superclass mirrored children. Use allChildren().asData() to return an array of key/values. /// This returns all the children, even all the superclass mirrored children. Use allChildren().asData() to return an array of key/values.