english/libraries/joomla/html/html/behavior.php
/**
	 * Method to load the MooTools framework into the document head
	 *
	 * If debugging mode is on an uncompressed version of MooTools is included for easier debugging.
	 *
	 * @param   string   $extras	MooTools file to load
	 * @param   boolean  $debug	Is debugging mode on? [optional]
	 *
	 * @return  void
	 * @since   11.1
	 */
Method to load the MooTools framework into the document head
If debugging mode is on an uncompressed version of MooTools is included for easier debugging.

@param   string   $extras    MooTools file to load
@param   boolean  $debug     Is debugging mode on. [optional]


Method to load the MooTools framework into the document head If debugging mode is on an uncompressed version of MooTools is included for easier debugging . @param string $extras MooTools file to load @param boolean $debug Is debugging mode on . [ optional ]
public static function framework($extras = false, $debug = null)
	{
		static $loaded = array();
		$type = $extras ? 'more' : 'core';
		if (!empty($loaded[$type])) {
			return;
		}
		JHtml::core($debug);
		if ($debug === null) {
			$config = JFactory::getConfig();
			$debug = $config->get('debug');
		}
		$uncompressed	= $debug ? '-uncompressed' : '';
		if ($type != 'core' && empty($loaded['core'])) {
			self::framework(false, $debug);
		}
		JHtml::_('script', 'system/mootools-'.$type.$uncompressed.'.js', false, true, false, false);
		$loaded[$type] = true;
		return;
	}
public static function framework ( $ extras = false , $ debug = null ) { static $ loaded = array ( ) ; $ type = $ extras ? 'more' : 'core' ; if ( ! empty ( $ loaded [ $ type ] ) ) { return ; } JHtml :: core ( $ debug ) ; if ( $ debug === null ) { $ config = JFactory :: getConfig ( ) ; $ debug = $ config -> get ( 'debug' ) ; } $ uncompressed = $ debug ? '-uncompressed' : '' ; if ( $ type != 'core' && empty ( $ loaded [ 'core' ] ) ) { self :: framework ( false , $ debug ) ; } JHtml :: _ ( 'script' , 'system/mootools-' . $ type . $ uncompressed . '.js' , false , true , false , false ) ; $ loaded [ $ type ] = true ; return ; }
Method to load the MooTools framework into the document head
 If debugging mode is on an uncompressed version of MooTools is included for easier debugging.
Method to load the MooTools framework into the document head If debugging mode is on an uncompressed version of MooTools is included for easier debugging .
// Only load once // If no debugging value is set, use the configuration setting