[FEATURE] Allow RequireJS module loading to execute custom code 35/35635/2
authorBenjamin Mack <benni@typo3.org>
Wed, 24 Dec 2014 13:02:49 +0000 (14:02 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 29 Dec 2014 22:44:34 +0000 (23:44 +0100)
commitcdf9b40f60e1af7f235b678809a102d9ca45eb5c
tree81c553eb649347a1f0671eb8a606311cd6deff66
parentbc0805489edae151170ceba655996b3b7caced66
[FEATURE] Allow RequireJS module loading to execute custom code

When loading RequireJS modules, it is sometimes helpful to
execute custom code or set inline settings coming from the
server side.

A second parameter in the PageRenderer->loadRequireJsModule

allows to work exactly like using the JS code directly for
require([module], function() { customCode(); });

This is used as a basis to allow proper coding of JS changes
like the legacy tree functionality.

See the current Storage API change for an example on how to use
this.

Releases: master
Resolves: #64036
Change-Id: I7a84f930f7aeab8e46fcf93639055576f751a304
Reviewed-on: http://review.typo3.org/35635
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Page/PageRenderer.php