I am passing some params to JS in my custom module using the addScriptOptions provided by Joomla:
$document->addScriptOptions("mod_mymodule", $params));This works fine, as long as there is only 1 instance of the same module on 1 page. But how to make it work for multiple modules on the same page?
I would think to pass 1 object like so:
$document->add...