bergie / VIE

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

Entity.setOrAdd() duplicate entries #108

Open neogermi opened 12 years ago

neogermi commented 12 years ago
var z = new VIE();
z.entities.add({'@subject': 'http://example.org/EricClapton'});
var clapton = z.entities.get('http://example.org/EricClapton');
clapton.setOrAdd('plays', 'guitar');
clapton.setOrAdd('plays', 'vocals');

The above results that the plays attribute now has three elements: ["guitar", "vocals", "vocals"].

A bugfix for this is on it's way.

akuckartz commented 11 years ago

Why is the status still "Open" ? This seems to be fixed according to the pervious comment.