BoardStore._switchCard = function (oldList, newList, card, newIndex) { oldList.cards.splice(oldList.cards.indexOf(oldList.cards.findById(card.id)),1); card.list_id = newList.id; newList.cards.splice(newIndex, 0, card); BoardStore._updateOrds(oldList); BoardStore._updateOrds(newList); };