Skip to content

Commit 7a9d081

Browse files
committed
Improve comment.
1 parent 527afba commit 7a9d081

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/lib/template/templatizer.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,11 @@
198198
},
199199

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

0 commit comments

Comments
 (0)