提交 cec116c7 编写于 作者: K Kohsuke Kawaguchi

Fragment can contain text and other stuff, not just elements.

上级 ee12b204
......@@ -439,7 +439,8 @@ function renderOnDemand(e,callback,noBehaviour) {
while (c.firstChild!=null) {
var n = c.firstChild;
e.parentNode.insertBefore(n,e);
noBehaviour || Behaviour.applySubtree(n,true);
if (n.nodeType==1 && !noBehaviour)
Behaviour.applySubtree(n,true);
}
Element.remove(e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册