Skip to content

Commit

Permalink
Ensure template instance isn't cached on prototype. Fixes #5096
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 6, 2018
1 parent 9721433 commit 75a9a5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/template/templatizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@
},

_customPrepAnnotations: function(archetype, template) {
archetype._template = 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;
if (!c._notes) {
var rootDataHost = archetype._rootDataHost;
Expand Down

0 comments on commit 75a9a5f

Please sign in to comment.