@@ -377,10 +377,9 @@ JavaScriptCompiler.prototype = {
|
||||
for (; i < len; i++) {
|
||||
this.replaceStack(function(current) {
|
||||
var lookup = this.nameLookup(current, parts[i], 'context');
|
||||
// We want to ensure that zero and false are handled properly for the first element
|
||||
// of non-chained elements, if the context (falsy flag) needs to have the special
|
||||
// handling for these values.
|
||||
if (!falsy && !i && len === 1) {
|
||||
// We want to ensure that zero and false are handled properly if the context (falsy flag)
|
||||
// needs to have the special handling for these values.
|
||||
if (!falsy) {
|
||||
return ' != null ? ' + lookup + ' : ' + current;
|
||||
} else {
|
||||
// Otherwise we can use generic falsy handling
|
||||
|
||||
Reference in New Issue
Block a user