diff -r 45cca39b00ac -r 3360c3f7fb18 client/js/model.js --- a/client/js/model.js Wed Jul 25 19:36:31 2012 +0200 +++ b/client/js/model.js Thu Jul 26 18:06:05 2012 +0200 @@ -15,14 +15,6 @@ this[ _propName + "_id" ] = _id; var _element = _list.getElement(_id); this[ _propName ] = _element; -/* if (typeof _element !== "undefined" && typeof _element._backRefs !== "undefined") { - _element._backRefs.push({ - type: this.type, - id: this.id, - pointing_property: _propName, - element: this - }); - } */ } /* Element Class Generator */ @@ -55,11 +47,12 @@ Rkns.Model.Edge = Rkns.Model._elementClass("edge"); Rkns.Model.Edge.prototype._init = function(_project, _props) { + this.addReference("created_by", this._project.users, _props.created_by); this.addReference("from", this._project.nodes, _props.from); this.addReference("to", this._project.nodes, _props.to); } -/* List Helper Functions */ +/* List Helper Functions -- See Metadataplayer */ Rkns.Model.List = function() { Array.call(this);