We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aaacf5 commit 0659f96Copy full SHA for 0659f96
libember/Headers/ember/dom/impl/AsyncDomReader.ipp
@@ -92,19 +92,23 @@ namespace libember { namespace dom
92
resetImpl();
93
}
94
95
- if (m_root == 0)
+ if (container != 0)
96
{
97
- m_root = container;
98
- }
99
- else
100
- {
101
- dom::Container* current = dynamic_cast<dom::Container*>(m_current);
102
- if (current)
103
- current->insert(current->end(), container);
+ if (m_root == 0)
+ {
+ m_root = container;
+ }
+ else
+ dom::Container* current = dynamic_cast<dom::Container*>(m_current);
104
+ if (current)
105
+ current->insert(current->end(), container);
106
107
+
108
+ m_current = container;
109
+ containerReady(container);
110
111
- m_current = container;
- containerReady(container);
112
113
114
LIBEMBER_INLINE
0 commit comments