diff options
Diffstat (limited to 'src/model/core.js')
| -rw-r--r-- | src/model/core.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/model/core.js b/src/model/core.js index 8575f7d0..015af1db 100644 --- a/src/model/core.js +++ b/src/model/core.js @@ -42,6 +42,13 @@ define([], function() { function Link() { } + // adapte Link to force_layoutL create __src,__dst aliases + Link.prototype.__defineGetter__('source', function(){ + return this.__src; + }); + Link.prototype.__defineGetter__('target', function(){ + return this.__dst; + }); /** * the most flexible way to create a node: - perform spec field validation - |
