restore grouped card click handler
This commit is contained in:
parent
f52a94d778
commit
2efd8e3c32
4 changed files with 70 additions and 9 deletions
|
@ -13,9 +13,14 @@ define([], function () {
|
|||
return elem;
|
||||
}
|
||||
|
||||
function parentWithTag(elem, tagName) {
|
||||
function parentWithTag(elem, tagNames) {
|
||||
|
||||
while (elem.tagName != tagName) {
|
||||
// accept both string and array passed in
|
||||
if (!Array.isArray(tagNames)) {
|
||||
tagNames = [tagNames];
|
||||
}
|
||||
|
||||
while (tagNames.indexOf(elem.tagName || '') == -1) {
|
||||
elem = elem.parentNode;
|
||||
|
||||
if (!elem) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue