Преглед изворни кода

Clear buffer before rendering. Closes #26.

tags/0.3.0
Jan Lehnardt пре 16 година
родитељ
комит
6e4bd7f86b
1 измењених фајлова са 3 додато и 0 уклоњено
  1. +3
    -0
      mustache.js

+ 3
- 0
mustache.js Прегледај датотеку

@@ -17,6 +17,9 @@ var Mustache = function() {
}, },


render: function(template, context, partials, in_recursion) { render: function(template, context, partials, in_recursion) {
// reset buffer
// TODO: make this non-lazy
this.buffer = [];
// fail fast // fail fast
if(!this.includes("", template)) { if(!this.includes("", template)) {
if(in_recursion) { if(in_recursion) {


Loading…
Откажи
Сачувај