Parcourir la source

Remove Context#clearCache

tags/0.7.3
Michael Jackson il y a 13 ans
Parent
révision
f8eb6e8f38
1 fichiers modifiés avec 1 ajouts et 5 suppressions
  1. +1
    -5
      mustache.js

+ 1
- 5
mustache.js Voir le fichier

@@ -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);
};


Chargement…
Annuler
Enregistrer