For ".remove" you either need to pass the item that you want to remove (a reference to that item) or pass a function that returns whether it should remove the item.
In your case, if you had:
var thingA = { word: item, type: itemType };
var thingB = { word: item, type: ItemType };
var thingC = thingA;
thingA and thingB would be two different objects that are not equal to each other. thingC would be a reference to the same object as thingA.
So, you can either pass the exact reference to your object or a function like:
viewModel.adj.remove(function(item) {
return item.word === item && item.type === itemType;
});
This would remove any items that match the word and type specified.
Hope that helps.
On Wednesday, May 29, 2013 7:48:35 PM UTC-5, Lee Blazek wrote: