We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75a9a5f commit d25cb29Copy full SHA for d25cb29
1 file changed
src/lib/template/templatizer.html
@@ -198,10 +198,10 @@
198
},
199
200
_customPrepAnnotations: function(archetype, template) {
201
- // Don't store the actual template instance to avoid leaking; just
202
- // store an object referencing its content
203
- archetype._template = {_content: template._content};
204
- 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;
205
if (!c._notes) {
206
var rootDataHost = archetype._rootDataHost;
207
if (rootDataHost) {
0 commit comments