|
|
@ -1427,15 +1427,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
function _matches(/**HTMLElement*/el, /**String*/selector) { |
|
|
|
function _matches(/**HTMLElement*/el, /**String*/selector) { |
|
|
|
if (el) { |
|
|
|
if (el) { |
|
|
|
selector = selector.split('.'); |
|
|
|
if (el.matches) { |
|
|
|
|
|
|
|
return el.matches(selector); |
|
|
|
var tag = selector.shift().toUpperCase(), |
|
|
|
} else if (el.msMatchesSelector) { |
|
|
|
re = new RegExp('\\s(' + selector.join('|') + ')(?=\\s)', 'g'); |
|
|
|
return el.msMatchesSelector(selector); |
|
|
|
|
|
|
|
} |
|
|
|
return ( |
|
|
|
|
|
|
|
(tag === '' || el.nodeName.toUpperCase() == tag) && |
|
|
|
|
|
|
|
(!selector.length || ((' ' + el.className + ' ').match(re) || []).length == selector.length) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|