diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-27 15:33:49 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-01-16 22:39:26 -0500 |
commit | c53947a94acdcadf108447e1b559af48c407f52b (patch) | |
tree | 47386bbd49a01af4ae6dd59a9b8ecb48d90ebc38 /ext | |
parent | 6c58cbcf51b4ecd587ee780b5fcecac9ead9a1bd (diff) |
Only instantiate the first child
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mixed/js/display-generator.js | 3 |
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); } } |