Take the guesswork out of rendering clientside CRM variables
authorColeman Watts <coleman@civicrm.org>
Wed, 26 Aug 2020 13:23:41 +0000 (09:23 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 26 Aug 2020 13:23:41 +0000 (09:23 -0400)
commit7da8a388e41789ea1b131b81f4f6731702aaa8e8
tree0f7dd006429ad47922dc59467df0f025ac543d07
parentfb867fb873fe4b4aab5983cfcb75d8c8000b05fe
Take the guesswork out of rendering clientside CRM variables

The window.CRM object needs to be either created or updated depending on whether it already exists.

Before: Guess whether it exists based on the region and mode.
After: Actually check if it exists.
CRM/Core/Resources.php