diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-11-19 03:23:52 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-11-19 03:23:52 +0200 |
| commit | 5f16cb23876c44e6c9f6d0d6257785bd2a2d2f9b (patch) | |
| tree | 79a73aeb33617ed22c5d7e72b7e16f8aee3c601f /src | |
| parent | 7c499a02aba61a1323c526020336e2b3e3a224be (diff) | |
rm unused el param
Diffstat (limited to 'src')
| -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 b6c6192c..06c36adf 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 7b56d41b..959227c5 100644 --- a/src/rz_core.js +++ b/src/rz_core.js @@ -68,13 +68,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%') |
