Conversation
|
obvioously there is an issue with drone as this should have been picked up |
richard67
left a comment
There was a problem hiding this comment.
Fits to the syntax we have elsewhere.
|
I have tested this item ✅ successfully on dd0e85e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38613. |
|
I have tested this item ✅ successfully on dd0e85e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38613. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38613. |
|
Although this PR cleans up the warning there are more problems in this file, eg the The code should be: /**
* @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
[].slice.call(document.querySelectorAll('.article-status')).forEach((element) => {
element.addEventListener('click', (event) => {
event.stopPropagation();
});
});or even more compact: /**
* @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
[].slice.call(document.querySelectorAll('.article-status')).forEach((element) => element.addEventListener('click', (event) => event.stopPropagation()));@obuisard this might be a good project for 4.3: clean all the |
|
I agree @dgrammatiko, this should be cleaned up. Do you mind writing a PR for this issue and if you can't work on it I will try and rally the troops so you get help :-) |
|
@obuisard you could use #35725 as a guide.
|

Summary of Changes
Convert
unnamed functiontoarrow functionTesting Instructions
follow #38154
Actual result BEFORE applying this Pull Request
warning at

npm run lint:jsExpected result AFTER applying this Pull Request
no warning at

npm run lint:js