Browse files

Fix Underscore 1.3.2+ _.uniq() can't take undef

Fixes gh-70
Fixes gh-71
  • Loading branch information...
1 parent ac77a24 commit 5fbeca08f42c9ae0f4f9c918ac4bd563073ec3a5 @paularmstrong committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/parser.js
View
2 lib/parser.js
@@ -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,

0 comments on commit 5fbeca0

Please sign in to comment.