From 82d7c563c2ac23315f85e7659542b63c1db2dc3d Mon Sep 17 00:00:00 2001 From: LV-426 Date: Wed, 19 Nov 2014 03:23:52 +0200 Subject: rm unused el param --- src/model/graph.js | 2 +- src/rz_core.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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%') -- cgit v1.3.1