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

Steffen Kamper info at sk-typo3.de
Tue Jan 13 16:52:49 CET 2009


Hey Masi,

Martin Kutschker schrieb:
> Furthermore Prototype must be loaded before the adapter. And the adapter
> must be loaded before the main extJS library.
> 
> What happens if Prototype is loaded, but the Prototype adapater isn't?
> 
> Bah, working with automated code with more than one lib in a context
> where anybody may add stuff (jQuery anyone) isn't easy :( I'm thinking
> about a loadPrototype() function, so that the correct adaper is used and
> all libs are loaded in the required order.
> 

:-) yes of coarse it's not easy.
But using the (right) names here may help

first: load prototype if any ($this->JScodeLibArray['prototype'])
second: load ExtJS ( $this->JScodeLibArray['ext-adapter'], 
$this->JScodeLibArray['extJS'])
third: load the rest

a.s.o.

the names for standard libs should be defined in CGL

vg Steffen


More information about the TYPO3-team-core mailing list