Przeglądaj źródła

Allow empty-string partials.

Closes #40.
tags/0.3.0
Jan Lehnardt 16 lat temu
rodzic
commit
1ddda5c5f8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Wyświetl plik

@@ -85,7 +85,7 @@ var Mustache = function() {
*/
render_partial: function(name, context, partials) {
name = this.trim(name);
if(!partials || !partials[name]) {
if(!partials || partials[name] === undefined) {
throw({message: "unknown_partial '" + name + "'"});
}
if(typeof(context[name]) != "object") {


Ładowanie…
Anuluj
Zapisz