Permalink
Browse files

Added synchronized getter for child nodes

related to #335
  • Loading branch information...
1 parent 6ca6732 commit 0b0fc6a8690b92b855c70bcb9ff479e385c837b9 @odrobnik odrobnik committed Apr 2, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 Core/Source/DTHTMLParserNode.m
@@ -146,6 +146,14 @@ - (NSString *)text
#pragma mark - Properties
+- (NSArray *)childNodes
+{
+ @synchronized(self)
+ {
+ return _childNodes;
+ }
+}
+
@synthesize name = _name;
@synthesize attributes = _attributes;
@synthesize parentNode = _parentNode;

2 comments on commit 0b0fc6a

bolee replied Apr 6, 2013

Now i'm in holiday! I will add it next day!

Collaborator

odrobnik replied Apr 6, 2013

Please sign in to comment.