Merge commit '87b5d4ee61605b026506e92c9e8873d867c5f150' into es6-modules
Conflicts: dist/handlebars.js dist/handlebars.runtime.js lib/handlebars/base.js lib/handlebars/utils.js
This commit is contained in:
@@ -117,7 +117,7 @@ function registerDefaultHelpers(instance) {
|
||||
var type = toString.call(conditional);
|
||||
if(type === functionType) { conditional = conditional.call(this); }
|
||||
|
||||
if(!conditional || isEmpty(conditional)) {
|
||||
if (isEmpty(conditional)) {
|
||||
return options.inverse(this);
|
||||
} else {
|
||||
return options.fn(this);
|
||||
|
||||
Reference in New Issue
Block a user