/**
 * Collection that contains all selected (ticked) documents from the current documents list
 */
var TrashCanSelectedCollection = Backbone.Collection.extend({
	model: TrashCanModel,

	// expects TrashCanModel
	isSelected: function (doc)
	{
		for (var i = 0; i < this.length; i++)
		{
			var d = this.at(i);
			if (d.get('type') == doc.get('type') && d.getObjId() == doc.getObjId())
				return true;
		}
		return false;
	}
});


