ArtPoon/BioID

Failed to embed rtt.html in Trees.md

Closed this issue · 4 comments

Apparently mouse pointer isn't being captured:

d3.v3.min.js:1 Uncaught TypeError: Cannot read property 'sourceEvent' of null
    at k (VM15 d3.v3.min.js:1)
    at Object.oa.mouse (VM15 d3.v3.min.js:3)
    at SVGRectElement.<anonymous> (rtt.js:132)
    at SVGRectElement.__onmousemove (VM15 d3.v3.min.js:1)

Deleting this chunk:

<!--{% include njtree.html %} -->

## Likelihood


## Maximum likelihood trees


## Software


## Further readings

eliminates the error, but since I've commented out the include call, I can't understand why..

Yes, it's definitely njtree.html interfering with the rtt animation.
TIL Jekyll ignores comments when parsing include tags..

Between rtt.html and njtree.html:

  • d3 is being loaded twice
  • jQuery is being loaded twice
  • need to be cautious of duplicate global variables

Loading d3 and jQuery once only fixes this issue