GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I made widgets, that autoregister their own css/js. When I use multiple instances of a widget, its link/script entries get duplicated.
This snippet reproduces resource registering behaviour of 10 instances of a widget:
for ($nIndex = 0; $nIndex < 10; ++ $nIndex) $this->assets->addCss("style.css")->addJs("script.js");
added new feature #10938
Oy vey! Feature #10938 is still not merged!
It may be part of 3.1.0
Implemented in 3.2.x branch.