bergie / VIE

Semantic Interaction Framework for JavaScript
http://viejs.org/
MIT License
303 stars 56 forks source link

Point entity.collection to entity's original collection #116

Open bergie opened 12 years ago

bergie commented 12 years ago

In Backbone, Models keep a reference to their collection via model.collection property. This also happens with VIE, but since entities often belong to more than one collection, this is less useful.

For consistency, the model.collection property should always point to the originating collection for the entity, i.e the set of enhancements returned by StanbolService, or the rel parsed by RdfaService.