diff options
| author | xue <> | 2007-07-17 11:54:59 +0000 | 
|---|---|---|
| committer | xue <> | 2007-07-17 11:54:59 +0000 | 
| commit | 9ca0e83cc39d67c240ea89a2395d3bdb170fb4f7 (patch) | |
| tree | 2491c5ce6c962e335eb1d2f9d633a877a133663f /framework/Web/UI/TClientScriptManager.php | |
| parent | 8313b3412e0db7262966a60b859093e6577abb46 (diff) | |
Added THead requirement check
Diffstat (limited to 'framework/Web/UI/TClientScriptManager.php')
| -rw-r--r-- | framework/Web/UI/TClientScriptManager.php | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php index efb8ec17..5f924397 100644 --- a/framework/Web/UI/TClientScriptManager.php +++ b/framework/Web/UI/TClientScriptManager.php @@ -87,6 +87,16 @@ class TClientScriptManager extends TApplicationComponent  	}  	/** +	 * @return boolean whether THead is required in order to render CSS and js within head +	 * @since 3.1.1 +	 */ +	public function getRequiresHead() +	{ +		return count($this->_styleSheetFiles) || count($this->_styleSheets) +			|| count($this->_headScriptFiles) || count($this->_headScripts); +	} + +	/**  	 * Registers Prado javascript by library name. See "Web/Javascripts/source/packages.php"  	 * for library names.  	 * @param string script library name. | 
