Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
9719b854
Commit
9719b854
authored
Nov 27, 2019
by
marc
Committed by
marc duez
Jan 24, 2020
Browse files
graph.js : remove build_path_events() function, can be done safely during the update()
parent
a91a115c
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/graph.js
View file @
9719b854
...
...
@@ -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
*
* */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment