[TYPO3-core] RFC: #10069: Feature: Function for including extJS in Backend module
Martin Kutschker
masi-no at spam-typo3.org
Mon Jan 12 09:58:47 CET 2009
Martin Kutschker schrieb:
>
> BTW, what happens if two scripts call this function with different
> options? I think that extJS will be included twice as the JS/CSS loader
> APIs will treat the included files as different.
So, loadJavascriptLib() is flawed. It takes only into account the
filename/path, but not the intent.
Maybe it could work like this:
loadJavascriptLib($path, $name='').
eg.
$this->loadJavascriptLib(
'contrib/extjs/adapter/prototype/ext-prototype-adapter.js',
'extJS-adapter'
);
Masi
More information about the TYPO3-team-core
mailing list