src/synthetic.js
function (el, func) {
		var res;
		while (el && res !== false) {
			res = func(el);
			el = el.parentNode;
		}
		return el;
	}
function (el, func) {
		var res;
		while (el && res !== false) {
			res = func(el);
			el = el.parentNode;
		}
		return el;
	}
function ( el , func ) { var res ; while ( el && res !== false ) { res = func ( el ) ; el = el . parentNode ; } return el ; }
Calls a function on the element and all parents of the element until the function returns
false.
@hide
@param {Object} el
@param {Object} func
Calls a function on the element and all parents of the element until the function returns false .