From 7a80c3c5ee53eaede181d85ab604dfbb8d7916d7 Mon Sep 17 00:00:00 2001 From: Frank Celler Date: Wed, 18 Apr 2012 10:53:03 +0200 Subject: [PATCH] fix lost id --- js/common/modules/graph.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/common/modules/graph.js b/js/common/modules/graph.js index b6d0dea46b..8dee74fe44 100644 --- a/js/common/modules/graph.js +++ b/js/common/modules/graph.js @@ -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