Skip to content

Commit

Permalink
Fixed something I just broke.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Suter committed Jul 15, 2009
1 parent 3b7739e commit 23e66d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Plugin/Plugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -1370,8 +1370,11 @@ - (void) _convertTypesForFlashContainerAfterDelay
// Remove & reinsert the node to persuade the plugin system to notice the type change:
id parent = [[self container] parentNode];
id successor = [[self container] nextSibling];
[parent removeChild:[self container]];
[parent insertBefore:[self container] refChild:successor];

DOMElement *theContainer = [[self container] retain];
[parent removeChild:theContainer];
[parent insertBefore:theContainer refChild:successor];
[theContainer release];
[self setContainer:nil];
}

Expand Down

0 comments on commit 23e66d3

Please sign in to comment.