1
0
Fork 0

fix lost id

This commit is contained in:
Frank Celler 2012-04-18 10:53:03 +02:00
parent d7c4bb0cc8
commit 7a80c3c5ee
1 changed files with 3 additions and 0 deletions

View File

@ -190,6 +190,8 @@ Edge.prototype.getPropertyKeys = function () {
Edge.prototype.setProperty = function (name, value) {
var shallow = shallowCopy(this._properties);
shallow['$id'] = this._properties.$id;
shallow['$label'] = this._properties.$label;
shallow[name] = value;
// TODO use "update" if this becomes available
@ -629,6 +631,7 @@ Vertex.prototype.properties = function () {
Vertex.prototype.setProperty = function (name, value) {
var shallow = shallowCopy(this._properties);
shallow['$id'] = this._properties.$id;
shallow[name] = value;
// TODO use "update" if this becomes available