summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-25 00:32:57 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-25 00:32:57 -0500
commit501a640330187f179955c92cb5624c76c1963f81 (patch)
treebb8e9cfe2978ad2cabd3b64d1af5fe8bac40458c /lib/handlebars/compiler/compiler.js
parent477a26913a66593c1384e83af866a71347336ce2 (diff)
downloadhandlebars.js-501a640330187f179955c92cb5624c76c1963f81.zip
handlebars.js-501a640330187f179955c92cb5624c76c1963f81.tar.gz
handlebars.js-501a640330187f179955c92cb5624c76c1963f81.tar.bz2
Allow passing depths to _child
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index 673cde3..eafee74 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -426,11 +426,11 @@ export function compile(input, options, env) {
}
return compiled._setup(options);
};
- ret._child = function(i) {
+ ret._child = function(i, data, depths) {
if (!compiled) {
compiled = compileInput();
}
- return compiled._child(i);
+ return compiled._child(i, data, depths);
};
return ret;
}