Problem/Motivation

Current scripts have simple comments inside.
Custom events should be described globally.

Proposed resolution

Add core style javascript documentation:
https://www.drupal.org/docs/develop/standards/javascript-coding-standard...

Issue fork navigation-3401807

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

finnsky created an issue. See original summary.

Meeni_Dhobale made their first commit to this issue’s fork.

meeni_dhobale’s picture

Status: Active » Needs review

I raised the MR by adding some comments and tags where needed. I also followed the javascript coding standards as well.

while checking for the linting errors I found one.

modules/contrib/navigation/js/toolbar-popover.js
  102:15  error  'close' was used before it was defined  no-use-before-define

✖ 1 problem (1 error, 0 warnings)

the same error shown by the delayedClose() as well, So I moved it upwards before the close() and open() functions, but inside he delayedClose() the close() is called. So here circular deadlock occurs.
Is there any solution to solve this.

finnsky’s picture

Status: Needs review » Reviewed & tested by the community

I think we can avoid that formatting change here.
Looks good to me. Thank you

ckrina’s picture

Status: Reviewed & tested by the community » Fixed

Thanks both!!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.