diff options
author | kpdecker <kpdecker@gmail.com> | 2014-01-04 09:14:22 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-01-04 09:19:58 -0600 |
commit | 6d996ef2706c6f0f9fd60e18ea90b5565096c568 (patch) | |
tree | bf03405123482d3fb1cf2f52c407b40a0fa258b0 /lib/handlebars/compiler/compiler.js | |
parent | 55c7cbbbfa830d225e91440836b440f8019e3ac0 (diff) | |
download | handlebars.js-6d996ef2706c6f0f9fd60e18ea90b5565096c568.zip handlebars.js-6d996ef2706c6f0f9fd60e18ea90b5565096c568.tar.gz handlebars.js-6d996ef2706c6f0f9fd60e18ea90b5565096c568.tar.bz2 |
Simplify ambiguous code
Remove if conditional in favor of boolean failover.
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 461f98b..8389f84 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -364,6 +364,7 @@ Compiler.prototype = { var options = this.options; // if ambiguous, we can possibly resolve the ambiguity now + // An eligible helper is one that does not have a complex path, i.e. `this.foo`, `../foo` etc. if (isEligible && !isHelper) { var name = sexpr.id.parts[0]; |