Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Entity.setOrAdd() duplicate entries #108

neogermi opened this Issue May 31, 2012 · 1 comment


None yet
2 participants

neogermi commented May 31, 2012

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.

@neogermi neogermi pushed a commit to neogermi/VIE that referenced this issue May 31, 2012

Sebastian Germesin fixed issue #108 09b8b25

@bergie bergie added a commit that referenced this issue Jun 5, 2012

@bergie bergie Merge pull request #109 from neogermi/fix108
fixed issue #108

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment