From ecaf622512756000f3abf9687a0f3bfbadd8c75d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 7 May 2013 13:45:40 -0500 Subject: Fix slot warnings when no partManager is available This resolves the remainder of Bug 1088 --- tdehtml/ecma/kjs_dom.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'tdehtml/ecma/kjs_dom.cpp') diff --git a/tdehtml/ecma/kjs_dom.cpp b/tdehtml/ecma/kjs_dom.cpp index 77d4983da..c76f867a4 100644 --- a/tdehtml/ecma/kjs_dom.cpp +++ b/tdehtml/ecma/kjs_dom.cpp @@ -609,17 +609,23 @@ Value DOMNodeProtoFunc::tryCall(ExecState *exec, Object &thisObj, const List &ar DOMString where = args[0].toString(exec).string(); - if (where == "beforeBegin" || where == "BeforeBegin") + if (where == "beforeBegin" || where == "BeforeBegin") { node.parentNode().insertBefore(docFrag, node); - else if (where == "afterBegin" || where == "AfterBegin") + } + else if (where == "afterBegin" || where == "AfterBegin") { node.insertBefore(docFrag, node.firstChild()); - else if (where == "beforeEnd" || where == "BeforeEnd") + } + else if (where == "beforeEnd" || where == "BeforeEnd") { return getDOMNode(exec, node.appendChild(docFrag)); - else if (where == "afterEnd" || where == "AfterEnd") - if (!node.nextSibling().isNull()) + } + else if (where == "afterEnd" || where == "AfterEnd") { + if (!node.nextSibling().isNull()) { node.parentNode().insertBefore(docFrag, node.nextSibling()); - else + } + else { node.parentNode().appendChild(docFrag); + } + } return Undefined(); } -- cgit v1.2.1