Fix name conflict with c = console.

This commit is contained in:
ccd0 2014-10-26 13:35:36 -07:00
parent 18beaf70d9
commit 5e403217ae

View File

@ -145,12 +145,12 @@ Header =
for node in $('#boardNavDesktop > .boardList').childNodes
switch node.nodeName
when '#text'
for c in node.nodeValue
span = $.el 'span', textContent: c
span.className = 'space' if c is ' '
nodes.push spacer() if c is ']'
for chr in node.nodeValue
span = $.el 'span', textContent: chr
span.className = 'space' if chr is ' '
nodes.push spacer() if chr is ']'
nodes.push span
nodes.push spacer() if c is '['
nodes.push spacer() if chr is '['
when 'A'
a = node.cloneNode true
a.className = 'current' if a.pathname.split('/')[1] is g.BOARD.ID