diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-28 16:02:24 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-28 16:02:29 +0200 |
| commit | 8914099eb2cd7a31677b26fc485afdc2701a7df3 (patch) | |
| tree | 17767ff202936c4a9afd32d721115f8399d1d073 /src/client/model/graph.js | |
| parent | b2c8c309e405a62653ace14608def31a61a0dab6 (diff) | |
client: fix #238 - ReferenceError due to refactoring error
Doesn't fix node color, that is fixed in next commit
Diffstat (limited to 'src/client/model/graph.js')
| -rw-r--r-- | src/client/model/graph.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js index 609c846c..c3e5209b 100644 --- a/src/client/model/graph.js +++ b/src/client/model/graph.js @@ -610,7 +610,8 @@ function Graph() { this.findCoordinates = function(id) { var n = find_node__by_id(id); - if ((index !== undefined)) { + + if (n !== undefined) { $('.typeselection').css('top', n.y - 90); $('.typeselection').css('left', n.x - 230); } |
