src/synthetic.js
function (el, type) {
		while (el && el.nodeName.toLowerCase() !== type.toLowerCase()) {
			el = el.parentNode;
		}
		return el;
	}
function (el, type) {
		while (el && el.nodeName.toLowerCase() !== type.toLowerCase()) {
			el = el.parentNode;
		}
		return el;
	}
function ( el , type ) { while ( el && el . nodeName . toLowerCase ( ) !== type . toLowerCase ( ) ) { el = el . parentNode ; } return el ; }
Returns the closest element of a particular type.
@hide
@param {Object} el
@param {Object} type
Returns the closest element of a particular type .