#19813loadJavascriptLib needs second param to be unique
Description
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’);
(issue imported from #M10122)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.