Skip to content

Commit

Permalink
#436, fix #443 — fix SVG renderer to use parentNode instead of `sel…
Browse files Browse the repository at this point in the history
…ection.parent()`
  • Loading branch information
shamansir committed Feb 18, 2017
1 parent 1e10a29 commit 149aaed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ return function(networkRoot, userConfig) {
var valueRepr = inlet.def.show ? inlet.def.show(update.value)
: update.value;
if (render.show) {
render.show.bind(inlet)(valueElm.parent().node(), update.value, valueRepr);
render.show.bind(inlet)(valueElm.node().parentNode || valueElm.node(), update.value, valueRepr);
} else {
valueElm.text(valueRepr);
}
Expand All @@ -453,7 +453,7 @@ return function(networkRoot, userConfig) {
var valueRepr = outlet.def.show ? outlet.def.show(update.value)
: update.value;
if (render.show) {
render.show.bind(outlet)(valueElm.parent().node(), update.value, valueRepr);
render.show.bind(outlet)(valueElm.node().parentNode || valueElm.node(), update.value, valueRepr);
} else {
valueElm.text(valueRepr);
}
Expand Down

0 comments on commit 149aaed

Please sign in to comment.