We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 527afba commit 7a9d081Copy full SHA for 7a9d081
1 file changed
src/lib/template/templatizer.html
@@ -198,8 +198,11 @@
198
},
199
200
_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)
+ // Store a "clone" of the template on the archetype to ensure no
+ // 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
206
var t = archetype._template = document.createElement('template');
207
var c = t._content = template._content;
208
if (!c._notes) {
0 commit comments