lib/conbo.js
function(selector)
	{
		var el = this.__obj;
		
		if (el)
		{
			var matchesFn;
			
			['matches','webkitMatchesSelector','mozMatchesSelector','msMatchesSelector','oMatchesSelector'].some(function(fn) 
			{
				if (typeof document.body[fn] == 'function') 
				{
					matchesFn = fn;
					return true;
				}
				
				return false;
			});
			
			var parent;
			
			// traverse parents
			while (el)
			{
				parent = el.parentElement;
				
				if (parent && parent[matchesFn](selector)) 
				{
					return parent;
				}
				
				el = parent;
			}
		}
	}
function(selector)
	{
		var el = this.__obj;
		
		if (el)
		{
			var matchesFn;
			
			['matches','webkitMatchesSelector','mozMatchesSelector','msMatchesSelector','oMatchesSelector'].some(function(fn) 
			{
				if (typeof document.body[fn] == 'function') 
				{
					matchesFn = fn;
					return true;
				}
				
				return false;
			});
			
			var parent;
			
			// traverse parents
			while (el)
			{
				parent = el.parentElement;
				
				if (parent && parent[matchesFn](selector)) 
				{
					return parent;
				}
				
				el = parent;
			}
		}
	}
function ( selector ) { var el = this . __obj ; if ( el ) { var matchesFn ; [ 'matches' , 'webkitMatchesSelector' , 'mozMatchesSelector' , 'msMatchesSelector' , 'oMatchesSelector' ] . some ( function ( fn ) { if ( typeof document . body [ fn ] == 'function' ) { matchesFn = fn ; return true ; } return false ; } ) ; var parent ; // traverse parents
 while ( el ) { parent = el . parentElement ; if ( parent && parent [ matchesFn ] ( selector ) ) { return parent ; } el = parent ; } } }
Finds the closest parent element matching the specified selector

@param 		{string}	selector - Query selector
@returns		{Element}
Finds the closest parent element matching the specified selector