diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-11-19 03:23:52 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-25 15:09:32 +0200 |
| commit | 82d7c563c2ac23315f85e7659542b63c1db2dc3d (patch) | |
| tree | f197e424db6ec26937ff313c55fd50229ece309a | |
| parent | 5bc8f18710e2a4db6f5bfd5221ef1d30906a2b28 (diff) | |
rm unused el param
| -rw-r--r-- | src/model/graph.js | 2 | ||||
| -rw-r--r-- | src/rz_core.js | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/model/graph.js b/src/model/graph.js index 8ec74f5c..a93d74a1 100644 --- a/src/model/graph.js +++ b/src/model/graph.js @@ -3,7 +3,7 @@ define(['signal', 'consts', 'util', 'textanalysis', 'model/core', 'model/util', 'rz_api_backend', 'rz_api_mesh'], function (signal, consts, util, textanalysis, model_core, model_util, rz_api_backend, rz_api_mesh) { -function Graph(el) { +function Graph() { var nodes = [], links = []; diff --git a/src/rz_core.js b/src/rz_core.js index 3b2ba31e..edd33aab 100644 --- a/src/rz_core.js +++ b/src/rz_core.js @@ -67,13 +67,12 @@ var initDrawingArea = function () { } } - var el = document.body; - - graph = new model_graph.Graph(el); + graph = new model_graph.Graph(); //Zoom scale behavior in zoom.js zoomObject = d3.behavior.zoom().scaleExtent([0.1, 3]).on("zoom", zoom); + var el = document.body; vis = d3.select(el).append("svg:svg") .attr('id', 'canvas_d3') .attr("width", '100%') |
