summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-11-19 03:23:52 +0200
committerAlon Levy <alon@pobox.com>2014-11-19 23:23:40 +0200
commita70a01801ab34180091c53a45c0e8eed8c4f0d35 (patch)
tree868348321de473a4b307f76f293ce79b25c5b66b /src
parent253f46286559735bbc60126eef721b5cedfabec5 (diff)
rm unused el param
Diffstat (limited to 'src')
-rw-r--r--src/model/graph.js2
-rw-r--r--src/rz_core.js5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/model/graph.js b/src/model/graph.js
index 28298e58..d015cc3a 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 8affa1b9..32069219 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%')