diff options
author | Tommy Messbauer <tommy@vast.com> | 2012-11-26 10:26:15 -0600 |
---|---|---|
committer | Tommy Messbauer <tommy@vast.com> | 2012-11-26 10:26:15 -0600 |
commit | db975b42a0ae295b6716700900a4724d97f1d9c6 (patch) | |
tree | 9d33e5c1ab8c279698cb58894711ac6f1282ec67 /lib/handlebars/runtime.js | |
parent | 79632184953284603b64a3179d087ebcda9d0ab6 (diff) | |
parent | bd0490145438e8f9df05abd2f4c25687bac81326 (diff) | |
download | handlebars.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.js | 4 |
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 +}; |