summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlan Johnson <alan@commondream.net>2011-09-05 14:20:57 -0400
committerAlan Johnson <alan@commondream.net>2011-09-05 14:20:57 -0400
commitb832c85923055d81dbb85cfb52e7b9d9640e0482 (patch)
treee0407d5ca9c95029397b4d14dd908527ab572f55 /lib
parent33bb89beda5f2ebd80ed3e6552bf37ecd3bce226 (diff)
downloadhandlebars.js-b832c85923055d81dbb85cfb52e7b9d9640e0482.zip
handlebars.js-b832c85923055d81dbb85cfb52e7b9d9640e0482.tar.gz
handlebars.js-b832c85923055d81dbb85cfb52e7b9d9640e0482.tar.bz2
Forgot === for falsy check.
Diffstat (limited to 'lib')
-rw-r--r--lib/handlebars/compiler/compiler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index 4537386..0b4c23d 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -532,7 +532,7 @@ Handlebars.JavaScriptCompiler = function() {};
lookup: function(name) {
var topStack = this.topStack();
- this.source.push(topStack + " = (" + topStack + " == null || " + topStack + " == undefined || " + topStack + " == false ? " +
+ this.source.push(topStack + " = (" + topStack + " === null || " + topStack + " === undefined || " + topStack + " === false ? " +
topStack + " : " + this.nameLookup(topStack, name, 'context') + ");");
},