Like the title says, I’ve just completed the part where you alter CheckList’s addRow function to check for pre-existing orders with the same email address, but when I test it both orders remain on the checklist. I’ve tried debugging it but stepping into the find function just gives me a confusing mess of jQuery code. Here are my addRow and removeRow functions:
CheckList.prototype.addRow = function(coffeeOrder) {
// Remove any existing rows that match this orders email address
this.removeRow(coffeeOrder.emailAddress);
// Create a new checklist item for the coffeeOrder
var rowElement = new Row(coffeeOrder);
// Append it to the end of the checklist
this.$element.append(rowElement.$element);