GUI -- Protect against non-existent link element.
Change-Id: I6638de69c9d826c7697468727004c4392bf4925a
Showing
1 changed file
with
5 additions
and
0 deletions
| ... | @@ -874,8 +874,13 @@ | ... | @@ -874,8 +874,13 @@ |
| 874 | } | 874 | } |
| 875 | 875 | ||
| 876 | function linkExisting(d) { | 876 | function linkExisting(d) { |
| 877 | + // this is supposed to be an existing link, but we have observed | ||
| 878 | + // occasions (where links are deleted and added rapidly?) where | ||
| 879 | + // the DOM element has not been defined. So protection against that... | ||
| 880 | + if (d.el) { | ||
| 877 | restyleLinkElement(d, true); | 881 | restyleLinkElement(d, true); |
| 878 | } | 882 | } |
| 883 | + } | ||
| 879 | 884 | ||
| 880 | function linkEntering(d) { | 885 | function linkEntering(d) { |
| 881 | var link = d3.select(this); | 886 | var link = d3.select(this); | ... | ... |
-
Please register or login to post a comment