Fix: Elements select error

This commit is contained in:
surunzi
2016-06-06 15:44:18 +08:00
parent dd86036a96
commit 2cde71e74d
4 changed files with 40 additions and 53 deletions

14
eustia/isErudaEl.js Normal file
View File

@@ -0,0 +1,14 @@
function exports(el)
{
var parentNode = el.parentNode;
if (!parentNode) return false;
while (parentNode)
{
parentNode = parentNode.parentNode;
if (parentNode && parentNode.id === 'eruda') return true;
}
return false;
}