Provide clear throw on {{#each}}

Fixes #773
This commit is contained in:
kpdecker
2014-05-27 10:54:22 -04:00
parent 3cdf14d294
commit 7172d167dd
2 changed files with 6 additions and 7 deletions
+1 -3
View File
@@ -97,10 +97,8 @@ function registerDefaultHelpers(instance) {
});
instance.registerHelper('each', function(context, options) {
// Allow for {{#each}}
if (!options) {
options = context;
context = this;
throw new Exception('Must pass iterator to #each');
}
var fn = options.fn, inverse = options.inverse;