Skip to content

Commit

Permalink
Disable partial caching to avoid bug refs twitter#206
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwib committed Aug 17, 2015
1 parent 7e340e9 commit 31c5622
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ var Hogan = {};

// check to see that if we've instantiated this partial before
var template = partials[partial.name];
if (partial.instance && partial.base == template) {
return partial.instance;
}

if (typeof template == 'string') {
if (!this.c) {
Expand All @@ -67,9 +64,6 @@ var Hogan = {};
return null;
}

// We use this to check whether the partials dictionary has changed
this.partials[symbol].base = template;

if (partial.subs) {
// Make sure we consider parent template now
if (!partials.stackText) partials.stackText = {};
Expand All @@ -81,7 +75,6 @@ var Hogan = {};
template = createSpecializedPartial(template, partial.subs, partial.partials,
this.stackSubs, this.stackPartials, partials.stackText);
}
this.partials[symbol].instance = template;

return template;
},
Expand Down

0 comments on commit 31c5622

Please sign in to comment.