User tests: Successful: Unsuccessful:
If you are using another framework/version as the joomla core is using, it is sometimes needed to change the head data or set them to empty. In such situations people often accessing the private property of the JDocument Object (its not really a private property it just starts with a "_" what means it is private). This PR adds a function to reset certain parts of the head data.
You can use that in your template (Hello Templates clubs :-))
Add a JFactory::getDocument()->resetHeadData('scripts');
All Javascript loaded before should now not be loaded
API and release notes
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
?
|
yes, if it has a 2nd successfully test and someone else hit the merge button :-)
I have tested this item
Thanks!
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-25 19:41:27 |
Closed_By | ⇒ | zero-24 | |
Labels |
Added:
?
|
I have tested this item✅ successfully on 2c1ed3d
Works like described.... Will it be merged?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13964.