bergie / VIE

Semantic Interaction Framework for JavaScript

Home Page:http://viejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Entity.setOrAdd() duplicate entries

neogermi opened this issue · comments

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.

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