From 3aa093391b5e38c3d0b37b8465c5f197c463f0b1 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Mon, 15 Apr 2013 08:30:04 -0700 Subject: [PATCH] Use empty object as default view Fixes #238 --- mustache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustache.js b/mustache.js index af48fd1..cfb25e6 100644 --- a/mustache.js +++ b/mustache.js @@ -127,7 +127,7 @@ }; function Context(view, parent) { - this.view = view; + this.view = view || {}; this.parent = parent; this._cache = {}; }