Issue Feature Closed

#16900Use static method to integrate prototype or script.aculo.us framework

Oliver Hader 01/25/07, 14:44 updated 05/14/08, 10:01

Description

Prototype javascript framework and script.aculo.us are used in several backend modules. But also frontend extensions could use these frameworks.
It could possibly happen, that there a two or more extensions which integrate on of these files by <script src="..." type="..."></script>.

To avoid this, it’s requested to have a static method like

t3lib_div::includeJSprototype()

that takes care of it and stores a true value to a global variable like $GLOBALS[‘JSincluded’][‘prototype’]. Now all scripts “know” that prototype.js was included and don’t have to do that again.

(issue imported from #M4860)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.