civicrm/civicrm-core — pull request #2597 by pratik-joshi (2014-03-03 08:13:04+00:00)
Title: atif_work_on_fix_for_js_break : moved inclusion of common/customData.tpl

Details for replication :
- click on 'Add Register Participant' button in the Events Tab of User Contact Page.
- issue error : TypeError: CRM.buildCustomData is not a function
CRM.buildCustomData( 'Participant', 'null', 'null' );
- This is generated because the function invoke is made prior to the function declaration.
- As a result it breaks all subsequent js in the 'Register Participant' dialog box and the flow breaks.

fix : to declare the function (i.e to include the common/customData.tpl) above the invoke.
causing commit : https://github.com/civicrm/civicrm-core/commit/1beb268a63e70974a25de6f08812575f7f11d778#diff-122c31296531d2f3f77a8920f8f6488bL599