Skip to content
New issue

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Fix the web components #19957

Merged
merged 3 commits into from Mar 22, 2018
Merged

[4.0] Fix the web components #19957

merged 3 commits into from Mar 22, 2018

Conversation

dgrammatiko
Copy link
Contributor

Pull Request for Issue # .

Summary of Changes

  • The method HTMLHelper::webcomponent() is a little different than the script or stylesheet. This PR aligns it (basically the first param was an array and now is just the script path to be included).

  • This also assures that web components won't get loaded multiple times!

Testing Instructions

Apply patch, go to the backend and observe that alerts, switcher, media field and user field are still working!

Expected result

Actual result

Documentation Changes Required

Yes, a note here, using the same params as script and stylesheet is a good thing and also helpful for all devs since they don't have to remember that this method is weird and needs something different.

@wilsonge this is essential, I've got it wrong here 馃槗

@wilsonge wilsonge merged commit eefde8c into joomla:4.0-dev Mar 22, 2018
@wilsonge wilsonge added this to the Joomla 4.0 milestone Mar 22, 2018
@dgrammatiko dgrammatiko deleted the html/fix-wc branch March 22, 2018 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants