Skip to content

Commit 3c5cbad

Browse files
author
Zach Drayer
committed
autoreleased TFHppleElement as well
1 parent 668decd commit 3c5cbad

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

TFHppleElement.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737

3838
- (id) initWithNode:(NSDictionary *) theNode;
3939

40+
+ (TFHppleElement *) hppleElementWithNode:(NSDictionary *) theNode;
41+
4042
// Returns this tag's innerHTML content.
4143
- (NSString *) content;
4244

TFHppleElement.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ - (id) initWithNode:(NSDictionary *) theNode
5454
return self;
5555
}
5656

57+
+ (TFHppleElement *) hppleElementWithNode:(NSDictionary *) theNode {
58+
return [[[[self class] alloc] initWithName:theNode] autorelease];
59+
}
60+
61+
#pragma mark -
5762

5863
- (NSString *) content
5964
{

0 commit comments

Comments
 (0)