Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit fb994e4

Browse files
deplaygkalpak
authored andcommitted
refactor(jqLite): remove unused code in jqLiteBuildFragment()
Closes #14822
1 parent 55f26fc commit fb994e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jqLite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function jqLiteBuildFragment(html, context) {
215215
nodes.push(context.createTextNode(html));
216216
} else {
217217
// Convert html into DOM nodes
218-
tmp = tmp || fragment.appendChild(context.createElement("div"));
218+
tmp = fragment.appendChild(context.createElement("div"));
219219
tag = (TAG_NAME_REGEXP.exec(html) || ["", ""])[1].toLowerCase();
220220
wrap = wrapMap[tag] || wrapMap._default;
221221
tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, "<$1></$2>") + wrap[2];

0 commit comments

Comments
 (0)