Permalink
Browse files

-pushClassNames:

  • Loading branch information...
1 parent 9013a51 commit ad2cbc6cf2feb6226642d3ecda292e7c9e24eafe @mikeabdullah mikeabdullah committed Jul 5, 2012
Showing with 7 additions and 0 deletions.
  1. +1 −0 KSHTMLWriter.h
  2. +6 −0 KSHTMLWriter.m
View
@@ -68,6 +68,7 @@ extern NSString *KSHTMLWriterDocTypeHTML_5;
// Class names are accumulated and written automatically as an attribute of the next element started
// You can also push a class name using -pushAttribute:value: if attribute is 'class'
- (void)pushClassName:(NSString *)className;
+- (void)pushClassNames:(NSArray *)classNames;
#pragma mark HTML Fragments
View
@@ -130,6 +130,12 @@ - (void)pushClassName:(NSString *)className;
[_classNames addObject:className];
}
+- (void)pushClassNames:(NSArray *)classNames;
+{
+ // TODO: Check for duplicates while debugging
+ [_classNames addObjectsFromArray:classNames];
+}
+
- (void)pushAttribute:(NSString *)attribute value:(id)value;
{
if ([attribute isEqualToString:@"class"])

0 comments on commit ad2cbc6

Please sign in to comment.