summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/runtime.js
diff options
context:
space:
mode:
authorTommy Messbauer <tommy@vast.com>2012-11-26 10:26:15 -0600
committerTommy Messbauer <tommy@vast.com>2012-11-26 10:26:15 -0600
commitdb975b42a0ae295b6716700900a4724d97f1d9c6 (patch)
tree9d33e5c1ab8c279698cb58894711ac6f1282ec67 /lib/handlebars/runtime.js
parent79632184953284603b64a3179d087ebcda9d0ab6 (diff)
parentbd0490145438e8f9df05abd2f4c25687bac81326 (diff)
downloadhandlebars.js-db975b42a0ae295b6716700900a4724d97f1d9c6.zip
handlebars.js-db975b42a0ae295b6716700900a4724d97f1d9c6.tar.gz
handlebars.js-db975b42a0ae295b6716700900a4724d97f1d9c6.tar.bz2
Merged upstream master and ran unit tests
Diffstat (limited to 'lib/handlebars/runtime.js')
-rw-r--r--lib/handlebars/runtime.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlebars/runtime.js b/lib/handlebars/runtime.js
index 6fd38fd..4537687 100644
--- a/lib/handlebars/runtime.js
+++ b/lib/handlebars/runtime.js
@@ -57,7 +57,7 @@ Handlebars.VM = {
} else if (!Handlebars.compile) {
throw new Handlebars.Exception("The partial " + name + " could not be compiled when running in runtime-only mode");
} else {
- partials[name] = Handlebars.compile(partial);
+ partials[name] = Handlebars.compile(partial, {data: data !== undefined});
return partials[name](context, options);
}
}
@@ -69,4 +69,4 @@ Handlebars.template = Handlebars.VM.template;
return Handlebars;
-}; \ No newline at end of file
+};