Skip to content
Browse files

[css] uppercase selectors

  • Loading branch information...
1 parent a49f19f commit fb98ec7905194330942a81eb19b7d3c66ea6d946 Max Metral committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/css/src/UIView+NIStyleable.m
View
2 src/css/src/UIView+NIStyleable.m
@@ -575,7 +575,7 @@ -(NSArray *)buildSubviews:(NSArray *)viewSpecs inDOM:(NIDOM *)dom
NSString *firstClass = [viewInfo.cssClasses count] ? [viewInfo.cssClasses objectAtIndex:0] : nil;
[dom registerView:viewInfo.view withCSSClass:firstClass andId:viewInfo.viewId];
if (viewInfo.viewId && dom.target) {
- NSString *selectorName = [NSString stringWithFormat:@"set%@%@:", [viewInfo.viewId substringWithRange:NSMakeRange(1, 1)], [viewInfo.viewId substringFromIndex:2]];
+ NSString *selectorName = [NSString stringWithFormat:@"set%@%@:", [[viewInfo.viewId substringWithRange:NSMakeRange(1, 1)] uppercaseString], [viewInfo.viewId substringFromIndex:2]];
SEL selector = NSSelectorFromString(selectorName);
if ([dom.target respondsToSelector:selector]) {
#pragma clang diagnostic push

0 comments on commit fb98ec7

Please sign in to comment.
Something went wrong with that request. Please try again.