aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-27 15:33:49 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-16 22:39:26 -0500
commitc53947a94acdcadf108447e1b559af48c407f52b (patch)
tree47386bbd49a01af4ae6dd59a9b8ecb48d90ebc38
parent6c58cbcf51b4ecd587ee780b5fcecac9ead9a1bd (diff)
Only instantiate the first child
-rw-r--r--ext/mixed/js/display-generator.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/mixed/js/display-generator.js b/ext/mixed/js/display-generator.js
index 1921a454..44b250e7 100644
--- a/ext/mixed/js/display-generator.js
+++ b/ext/mixed/js/display-generator.js
@@ -330,7 +330,6 @@ class DisplayGenerator {
}
static _instantiateTemplate(template) {
- const content = document.importNode(template.content, true);
- return content.firstChild;
+ return document.importNode(template.content.firstChild, true);
}
}