Safer hr selecting.

This commit is contained in:
Nicolas Stepien 2013-04-26 17:51:37 +02:00
parent a2e87f1200
commit 3244c0f696

View File

@ -58,7 +58,7 @@ PSAHiding =
true
else
false
if hr = $.x 'following-sibling::hr', psa
if (hr = psa.nextElementSibling) and hr.nodeName is 'HR'
hr.hidden = psa.hidden
trim: (psa) ->
psa.textContent.replace(/\W+/g, '').toLowerCase()