WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress — pull request #540 by DevinWalker (2014-04-25 18:50:44+00:00)
Title: Repeatable Group Removal Fix

Issue: Repeatable groups removal

Description: see https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress/issues/539

Fix: Added JS code to the removeGroupRow function that updates field name attributes so data is not orphaned when a row is removed that's not at the end of the repeatable grouping: https://github.com/DevinWalker/Custom-Metaboxes-and-Fields-for-WordPress/blob/master/js/cmb.js#L418-431

Concerns: if there are a very large number of repeatable field groups the JS could be slow and cause problems. This is because if the user removed the first or second group the code has to go through all the next groups and update the field name attribute. If there are hundreds more... well, that could take a bit.

Also: Reformatted code to WP standards with added spaces, semicolons and what not.