restore grouped card click handler

This commit is contained in:
Luke Pulverenti 2016-07-23 16:00:56 -04:00
parent f52a94d778
commit 2efd8e3c32
4 changed files with 70 additions and 9 deletions

View file

@ -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) {