on develop help sign in
clear rootElement and append document fragment in favor of optimistically using replaceChild
commita7f0e7d7d272bb2b5352eef16c85b218bde8e601 authorLuigy Leon <luigy@outlook.com> dateThu 16 Jun 2016, 14:47 (10 years ago) parent15546d6
1 file changed+2−4
src/Reflex/Dom/Internal.hs+2−4
src/Reflex/Dom/Internal.hs+2−4
@@ -128,10 +128,8 @@ attachWidgetFragment' rootElement wv w = do
128128 _ <- fire (catMaybes mes) $ return ()
129129 liftIO $ forM_ ers $ \(_ :=> TriggerInvocation _ cb) -> cb
130130 return ()
131− -- XXX should it `setInnerHtml rootElement ""` first? looks good without it
132− -- FIXME this assumes the `rootElement` already has a child
133− Just prerender <- getFirstChild rootElement
134− replaceChild rootElement (Just df) (Just prerender)
131+ setInnerHTML rootElement $ Just (""::String)
132+ appendChild rootElement (Just df)
135133 return (result, fc)
136134
137135data AppInput t = AppInput