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

Commit 2e0e77e

Browse files
deplaygkalpak
authored andcommitted
refactor(jqLite): remove unused code in jqLiteBuildFragment()
Closes #14822
1 parent fb3bbc9 commit 2e0e77e

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
@@ -207,7 +207,7 @@ function jqLiteBuildFragment(html, context) {
207207
nodes.push(context.createTextNode(html));
208208
} else {
209209
// Convert html into DOM nodes
210-
tmp = tmp || fragment.appendChild(context.createElement("div"));
210+
tmp = fragment.appendChild(context.createElement("div"));
211211
tag = (TAG_NAME_REGEXP.exec(html) || ["", ""])[1].toLowerCase();
212212
wrap = wrapMap[tag] || wrapMap._default;
213213
tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, "<$1></$2>") + wrap[2];

0 commit comments

Comments
 (0)