• stuart nelson's avatar
    Fix jQuery and Tree creation errors (#467) · 8211b3e5
    stuart nelson authored
    * Use d3 to handle keyboard event
    
    jQuery isn't always being loaded before the
    routing-tree script is executed.
    
    We cannot guarantee when jQuery will be available,
    but d3 will be loaded before the routing-tree
    script. This change preserves the previous
    functionality.
    
    * Add simple case for handling fewer than 3 nodes
    
    The tree algorithm being used doesn't properly handle 1 or 2 nodes.
    8211b3e5
routing-tree.js 6.92 KB