Skip to content

Commit

Permalink
[util/closetag] Fix problem introduced by previous patch
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Sep 7, 2012
1 parent 1cea077 commit 2d38a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/closetag.js
Expand Up @@ -110,7 +110,7 @@

} else if (ch == '/') {
if (tok.className == 'tag' && tok.string == '<') {
var ctx = innerState(state).context, tagName = ctx && ctx.tagName;
var ctx = innerState(state).context, tagName = ctx ? ctx.tagName : '';
if (tagName.length > 0) {
completeEndTag(cm, pos, tagName);
return;
Expand Down

0 comments on commit 2d38a15

Please sign in to comment.