function(fn, lan)
	{
		var pending = mxClient.defaultBundles.length;
		
		function callback()
		{
			if (--pending == 0)
			{
				fn();
			}
		}
		
		for (var i = 0; i < mxClient.defaultBundles.length; i++)
		{
			mxResources.add(mxClient.defaultBundles[i], lan, callback);
		}
	}
function(fn, lan)
	{
		var pending = mxClient.defaultBundles.length;
		
		function callback()
		{
			if (--pending == 0)
			{
				fn();
			}
		}
		
		for (var i = 0; i < mxClient.defaultBundles.length; i++)
		{
			mxResources.add(mxClient.defaultBundles[i], lan, callback);
		}
	}
function ( fn , lan ) { var pending = mxClient . defaultBundles . length ; function callback ( ) { if ( -- pending == 0 ) { fn ( ) ; } } for ( var i = 0 ; i < mxClient . defaultBundles . length ; i ++ ) { mxResources . add ( mxClient . defaultBundles [ i ] , lan , callback ) ; } }
Function: loadResources

Helper method to load the default bundles if mxLoadResources is false.

Parameters:

fn - Function to call after all resources have been loaded.
lan - Optional string to pass to <mxResources.add>.
Function : loadResources
This function is called when the default bundles are added to the pool