src/js/main.js
/**
		 * Recursive function to get the closest ancestor by
		 * @param {HTMLElement} el Source Element
		 * @param {*} selector parentselector
		 * @returns {HTMLElement} Parent Element
		 */
Recursive function to get the closest ancestor by
@param {HTMLElement} el Source Element
@param {*} selector parentselector
@returns {HTMLElement} Parent Element
Recursive function to get the closest ancestor by @param { HTMLElement } el Source Element @param { * } selector parentselector @returns { HTMLElement } Parent Element
function findAncestor (el, selector) {
			while ((el = el.parentElement) && !(el.matches || el.matchesSelector).call(el, selector)) {
				continue;
			}
			return el;
		}
function findAncestor ( el , selector ) { while ( ( el = el . parentElement ) && ! ( el . matches || el . matchesSelector ) . call ( el , selector ) ) { continue ; } return el ; }
Recursive function to get the closest ancestor by
 @param {HTMLElement} el Source Element
 @param {*} selector parentselector
 @returns {HTMLElement} Parent Element
Recursive function to get the closest ancestor by @param { HTMLElement } el Source Element @param { * } selector parentselector @returns { HTMLElement } Parent Element