Skip to content

Commit

Permalink
Make _template an actual <template>, for correctness.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 8, 2018
1 parent 75a9a5f commit d25cb29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/template/templatizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@
},

_customPrepAnnotations: function(archetype, template) {
// Don't store the actual template instance to avoid leaking; just
// store an object referencing its content
archetype._template = {_content: template._content};
var c = template._content;
// Store a "clone" of the template on the archetype (content has been
// pulled into _content property, so copy that also)
var t = archetype._template = document.createElement('template');
var c = t._content = template._content;
if (!c._notes) {
var rootDataHost = archetype._rootDataHost;
if (rootDataHost) {
Expand Down

0 comments on commit d25cb29

Please sign in to comment.