Fix CRM_Utils_JS::dedupeClosures to ignore comments
authorColeman Watts <coleman@civicrm.org>
Tue, 30 Jun 2020 15:40:26 +0000 (11:40 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 30 Jun 2020 15:40:26 +0000 (11:40 -0400)
commit0290b3eb630eccffffbd71d9a1b83efe68e22536
tree76c138768facf309d3e2b724569b0fde58c8a7d8
parent06c114d268355014116f40a480715e5e59656c5e
Fix CRM_Utils_JS::dedupeClosures to ignore comments

This runs stripComments BEFORE dedupeClosures so that comments don't interfere with the deduping.
Also fixes stripComments to remove the line break as well as the comment line.
CRM/Utils/JS.php
Civi/Angular/Page/Modules.php
ang/crmUi.js
tests/phpunit/CRM/Utils/JSTest.php