[TYPO3-core] RFC: #10122: loadJavascriptLib needs second param to be unique

Steffen Kamper info at sk-typo3.de
Tue Jan 13 15:41:54 CET 2009


Hi,

This is an SVN patch request.

Type: Feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=10122

Branches: trunk

When using the function loadJavascriptLib in BE, the unique-check is 
done with the path.

This may be insufficient. When it comes to extJs you may load specific 
adapter. They have different paths, but they are not allowed to be 
incliuded both.

This patch adds a second param "name" that should be unique. The 
parameter is optional, if you miss it, it will be filled with the path.

Example:
$this->doc->loadJavascriptLib('contrib/extjs/adapter/prototype/ext-prototype-adapter.js', 
'extjs-Adapter');

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10122.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090113/87008589/attachment.txt 


More information about the TYPO3-team-core mailing list