phiamo/MopaBootstrapBundle — pull request #297 by PWalkow (2012-09-20 10:59:51+00:00)
Title: fix-for-collection-item-remove

According to the jquery documentation 'parent' method will find only the first parent. If our collection-item is not exactly parent of a button (like in some div element) it will not remove the collection-item. The solution is - according to the 'closest' method documentation - to use:
this.$element.closest('.collection-item').remove();