dist/bower_components/log4js/log4js-site/xdocs/skins/common/scripts/breadcrumbs.js
function getDirectoriesInURL()
{
	var trail = document.location.pathname.split( PATH_SEPARATOR );

	// check whether last section is a file or a directory
	var lastcrumb = trail[trail.length-1];
	for( var i = 0; i < FILE_EXTENSIONS.length; i++ )
	{
		if( lastcrumb.indexOf( FILE_EXTENSIONS[i] ) )
		{
			// it is, remove it and send results
			return trail.slice( 1, trail.length-1 );
		}
	}

	// it's not; send the trail unmodified
	return trail.slice( 1, trail.length );
}
function getDirectoriesInURL()
{
	var trail = document.location.pathname.split( PATH_SEPARATOR );

	// check whether last section is a file or a directory
	var lastcrumb = trail[trail.length-1];
	for( var i = 0; i < FILE_EXTENSIONS.length; i++ )
	{
		if( lastcrumb.indexOf( FILE_EXTENSIONS[i] ) )
		{
			// it is, remove it and send results
			return trail.slice( 1, trail.length-1 );
		}
	}

	// it's not; send the trail unmodified
	return trail.slice( 1, trail.length );
}
function getDirectoriesInURL ( ) { var trail = document . location . pathname . split ( PATH_SEPARATOR ) ; // check whether last section is a file or a directory var lastcrumb = trail [ trail . length - 1 ] ; for ( var i = 0 ; i < FILE_EXTENSIONS . length ; i ++ ) { if ( lastcrumb . indexOf ( FILE_EXTENSIONS [ i ] ) ) { // it is, remove it and send results return trail . slice ( 1 , trail . length - 1 ) ; } } // it's not; send the trail unmodified return trail . slice ( 1 , trail . length ) ; }
Returns an array containing the names of all the directories in the
current document URL
Returns an array containing the names of all the directories in the current document URL