?
avatar eopws
eopws
21 May 2021

The problem

A method in showon.js file has empty documentation comment.
I think that the comment should have a description of what the method does

https://github.com/joomla/joomla-cms/blob/4.0-dev/build/media_source/system/js/showon.es6.js#L114-L117

avatar eopws eopws - open - 21 May 2021
avatar joomla-cms-bot joomla-cms-bot - change - 21 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 May 2021
avatar dgrammatiko
dgrammatiko - comment - 22 May 2021

At line 101 there is a comment // Initialise

So what linkedOptions(key) is doing is initialize the showon behaviour for the given HTMLElement

avatar eopws
eopws - comment - 22 May 2021

So what linkedOptions(key) is doing is initialize the showon behaviour for the given HTMLElement

Yes, but I think that the comment https://github.com/joomla/joomla-cms/blob/4.0-dev/build/media_source/system/js/showon.es6.js#L114-L117 should have that info too.

At line 101 there is a comment // Initialise

Don't you think that the comment is too small and creates ambiguity (initialise what?).

avatar brianteeman
brianteeman - comment - 1 Jul 2021

see #34680

avatar alikon alikon - change - 1 Jul 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-07-01 12:04:04
Closed_By alikon
avatar alikon alikon - close - 1 Jul 2021
avatar alikon
alikon - comment - 1 Jul 2021

please test #34680

Add a Comment

Login with GitHub to post a comment