GUI -- Protect against non-existent link element.
Change-Id: I6638de69c9d826c7697468727004c4392bf4925a
Showing
1 changed file
with
6 additions
and
1 deletions
| ... | @@ -874,7 +874,12 @@ | ... | @@ -874,7 +874,12 @@ |
| 874 | } | 874 | } |
| 875 | 875 | ||
| 876 | function linkExisting(d) { | 876 | function linkExisting(d) { |
| 877 | - restyleLinkElement(d, true); | 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) { | ||
| 881 | + restyleLinkElement(d, true); | ||
| 882 | + } | ||
| 878 | } | 883 | } |
| 879 | 884 | ||
| 880 | function linkEntering(d) { | 885 | function linkEntering(d) { | ... | ... |
-
Please register or login to post a comment