jupiterjs/canjs — pull request #83 by roissard (2012-08-03 13:56:25+00:00)
Title: Model.List must test if Model exist when destroying

Test if target exist before splicing it from a Model.List. Otherwise the latest element will be removed.

The problem happens if you have 2 lists and some Models from the first one make reference to Models of the second one.

When destroying a Model from the second List, the last element in the first List will be removed (and this is not the expected behaviour).