From f8eb6e8f3887fd9890db8d4c02b832b1586cd965 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Thu, 27 Dec 2012 19:28:54 -0800 Subject: [PATCH] Remove Context#clearCache --- mustache.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mustache.js b/mustache.js index b78e48d..be39d6b 100644 --- a/mustache.js +++ b/mustache.js @@ -126,17 +126,13 @@ function Context(view, parent) { this.view = view; this.parent = parent; - this.clearCache(); + this._cache = {}; } Context.make = function (view) { return (view instanceof Context) ? view : new Context(view); }; - Context.prototype.clearCache = function () { - this._cache = {}; - }; - Context.prototype.push = function (view) { return new Context(view, this); };