When the for loop is entered, it never stops:
remove: function remove(e) {
var objectToRemoveId = e.currentTarget.getAttribute('objectId').toString();
var filteredList = this.myDto.objectList;
for (var index = 0; index < this.myDto.objectList.length; index++) {
var currentObject = this.myDto.objectList[index];
if (currentObject.Id !== objectToRemoveId) {
filteredList[filteredList.length + 1] = timeSheet;
}
}
}
Assumed that the this.myDto.ObjectList is an array with one element in it. I'm sure the problem is just staring me in the face, but I can't figure it out.
indexvariable at the beginning of theforloop