Skip to content

Commit

Permalink
prevent multiple calling of +initialize of other members of DTHTMLEle…
Browse files Browse the repository at this point in the history
…ment class cluster
  • Loading branch information
odrobnik committed Apr 23, 2013
1 parent c107904 commit 27aabba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Core/Source/DTHTMLElement.m
Expand Up @@ -37,6 +37,12 @@ @implementation DTHTMLElement

+ (void)initialize
{
// prevent calling from children
if (self != [DTHTMLElement class])
{
return;
}

// lookup table so that we quickly get the correct class to instantiate for special tags
NSMutableDictionary *tmpDict = [[NSMutableDictionary alloc] init];

Expand Down

0 comments on commit 27aabba

Please sign in to comment.