From 9d8a9524c33cafbf8525d3c0b901ae007dc05694 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 7 Dec 2014 19:46:03 +0200 Subject: findCoordinates() - rm unused state param --- src/model/graph.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/model/graph.js') diff --git a/src/model/graph.js b/src/model/graph.js index cf632815..abff1b2a 100644 --- a/src/model/graph.js +++ b/src/model/graph.js @@ -400,11 +400,11 @@ function Graph() { return this._editProperty(id, state, 'state', newstate); } - this.findCoordinates = function(id, type) { - var index = findNode(id, type); + this.findCoordinates = function(id) { + var n = find_node__by_id(id); if ((index !== undefined)) { - $('.typeselection').css('top', index.y - 90); - $('.typeselection').css('left', index.x - 230); + $('.typeselection').css('top', n.y - 90); + $('.typeselection').css('left', n.x - 230); } } -- cgit v1.3.1