Improved Code Style
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
{
|
||||
self = [super initWithElements:elements];
|
||||
if (self) {
|
||||
_rootLayout = [[MPExpressionLayout alloc] initRootLayoutWithExpression:self];
|
||||
_rootLayout = [[MPExpressionLayout alloc] initWithExpression:self parent:nil];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@@ -32,11 +32,11 @@
|
||||
- (void)setExpressionView:(MPExpressionView *)expressionView
|
||||
{
|
||||
_expressionView = expressionView;
|
||||
self.rootLayout = [[MPExpressionLayout alloc] initRootLayoutWithExpression:self];
|
||||
self.rootLayout = [[MPExpressionLayout alloc] initWithExpression:self parent:nil];
|
||||
self.rootLayout.flipped = expressionView.isFlipped;
|
||||
}
|
||||
|
||||
- (void)didChangeElementsInRangePath:(MPRangePath *)rangePath
|
||||
- (void)didChangeElementsInIndexedRangePath:(MPRangePath *)rangePath
|
||||
replacementLength:(NSUInteger)replacementLength
|
||||
{
|
||||
if (rangePath.location.length == 0) {
|
||||
|
||||
Reference in New Issue
Block a user