summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-12-12 15:27:26 -0600
committerkpdecker <kpdecker@gmail.com>2015-12-12 15:27:26 -0600
commit63a08890cce3620f3af328163f4313754df76581 (patch)
tree0a2445058949039548437e8ee467091339934d2a /lib/handlebars/compiler/compiler.js
parent0f054efcdb581790436c72341b72d92db52a7e3a (diff)
downloadhandlebars.js-63a08890cce3620f3af328163f4313754df76581.zip
handlebars.js-63a08890cce3620f3af328163f4313754df76581.tar.gz
handlebars.js-63a08890cce3620f3af328163f4313754df76581.tar.bz2
Remove semi-documented _setup and _child APIs
These were a bad idea to begin with and without the trackIds implementation they don’t make much sense.
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index 9fa9dd8..040e99a 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -461,25 +461,12 @@ export function compile(input, options = {}, env) {
}
// Template is only compiled on first use and cached after that point.
- function ret(context, execOptions) {
+ return function(context, execOptions) {
if (!compiled) {
compiled = compileInput();
}
return compiled.call(this, context, execOptions);
- }
- ret._setup = function(setupOptions) {
- if (!compiled) {
- compiled = compileInput();
- }
- return compiled._setup(setupOptions);
- };
- ret._child = function(i, data, blockParams, depths) {
- if (!compiled) {
- compiled = compileInput();
- }
- return compiled._child(i, data, blockParams, depths);
};
- return ret;
}
function argEquals(a, b) {