Skip to content

Commit

Permalink
Fix Underscore 1.3.2+ _.uniq() can't take undef
Browse files Browse the repository at this point in the history
Fixes gh-70
Fixes gh-71
  • Loading branch information
paularmstrong committed Apr 11, 2012
1 parent ac77a24 commit 5fbeca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parser.js
Expand Up @@ -258,7 +258,7 @@ exports.parse = function (data, tags, autoescape) {
line: curline,
name: tagname,
compile: tags[tagname],
parent: _.uniq(stack[stack.length - 2]),
parent: _.uniq(stack[stack.length - 2] || []),
strip: {
before: stripBefore,
after: stripAfter,
Expand Down

0 comments on commit 5fbeca0

Please sign in to comment.