Commit 9719b854 authored by marc's avatar marc Committed by marc duez
Browse files

graph.js : remove build_path_events() function, can be done safely during the update()

parent a91a115c
......@@ -700,7 +700,6 @@ Graph.prototype = {
.initData()
.initClones()
.initRes()
.build_path_events()
return this
},
......@@ -1257,6 +1256,12 @@ Graph.prototype = {
clone = clone
.transition()
.duration(speed)
.on("mouseover", function (d) {
self.m.focusIn(d.id);
})
.on("click", function (d) {
self.clickGraph(d.id);
})
}
clone.attr("d", function (p) {
return p.path
......@@ -1265,20 +1270,6 @@ Graph.prototype = {
return this
},
build_path_events : function (){
var self = this;
this.clones_container.selectAll("path")
.on("mouseover", function (d) {
self.m.focusIn(d.id);
})
.on("click", function (d) {
self.clickGraph(d.id);
});
return this;
},
/* renderer function for data curves
*
* */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment