Skip to content

Commit

Permalink
Improve comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 8, 2018
1 parent 527afba commit 7a9d081
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/template/templatizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,11 @@
},

_customPrepAnnotations: function(archetype, template) {
// Store a "clone" of the template on the archetype (content has been
// pulled into _content property, so copy that also)
// Store a "clone" of the template on the archetype to ensure no
// references on this template are leaked onto the cached archetype
// Note we don't actually clone the template since it could be
// a type-extension; rather we create a new one and copy the
// `_content` reference holding the prototypical content over
var t = archetype._template = document.createElement('template');
var c = t._content = template._content;
if (!c._notes) {
Expand Down

0 comments on commit 7a9d081

Please sign in to comment.