summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-11-02 18:13:55 +0200
committerLV-426 <lv-426@taproot.org.il>2014-11-02 18:13:55 +0200
commit9cd550c3a06d010754bea9862790a83151267ed1 (patch)
treef19a9c00b19186379c0328abfbc5675e9022878c /scripts
parenta27f3552962582b81441add561a6a81ac8d0c16e (diff)
getting rid of bad object names: myGraph -> Graph
Diffstat (limited to 'scripts')
-rw-r--r--scripts/model/graph.js4
-rw-r--r--scripts/rhizicore.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/model/graph.js b/scripts/model/graph.js
index 5f8043f2..ee8691b9 100644
--- a/scripts/model/graph.js
+++ b/scripts/model/graph.js
@@ -3,7 +3,7 @@
define(['signal', 'consts', 'util', 'textanalysis'], function (
signal, consts, util, textanalysis) {
-function myGraph(el) {
+function Graph(el) {
var nodes = []
var links = [];
@@ -499,5 +499,5 @@ function myGraph(el) {
};
- return myGraph;
+ return Graph;
});
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 61754f81..e16fa5e7 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -2,7 +2,7 @@
define('rhizicore',
['jquery', 'd3', 'consts', 'signal', 'util', 'history', 'textanalysis', 'model/graph'],
-function($, d3, consts, signal, util, history, textanalysis, myGraph) {
+function($, d3, consts, signal, util, history, textanalysis, Graph) {
var History = history.History;
var addednodes = [];
@@ -71,7 +71,7 @@ var initDrawingArea = function () {
var el = document.body;
- graph = new myGraph(el);
+ graph = new Graph(el);
//Zoom scale behavior in zoom.js
zoomObject = d3.behavior.zoom().scaleExtent([0.1, 3]).on("zoom", zoom);