CRM-16145 - When aggregating JS, dedupe adjacent closures.
authorTim Otten <totten@civicrm.org>
Thu, 9 Apr 2015 04:20:04 +0000 (21:20 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 9 Apr 2015 05:31:07 +0000 (22:31 -0700)
commitad295ca9975e90c500d9e642a0d773cc1cd08d05
tree1d0ac6c6f44406d08300fbeeb8ea9fa0674ea496
parent6d57b745873f23b3004b1128e5c80552c086fc3d
CRM-16145 - When aggregating JS, dedupe adjacent closures.

The reorganized Angular files have added ~50 identical closures, and there
are still other big modules which remain to split.  Ideally, the raw JS
files wouldn't bother with these closures, but we'd have to rework the debug
use-case and karma use-case if we removed the closures from the original
file (and that most likely means a change to developer workflow).  This
patch accomplishes the goal without changing developer workflow.
CRM/Utils/JS.php
Civi/Angular/Page/Modules.php
tests/phpunit/CRM/Utils/JSTest.php