This is the original code
$(this).slideUp(deleteElement);
itemRemove();
The above code calls itemRemove() before the slideUp is complete. So I used callback function as below
$(this).slideUp( deleteElement, function() {
itemRemove();
});
But this affects the indexing functionality of the repeater(does not decrement the repeater name indexes as the original repeater.