When calling destroy() the navigator element will be deleted but the listeners are not removed. This causes the extention to render even when it's not active any more.
Test script:
<script>
[...]
var nav = cy.navigator({
// options...
});
[...]
function destroyNav(){
nav.destroy();
}
[...]
</script>
<body>
<h1>cytoscape-navigator demo</h1>
<button onclick="destroyNav()">Destroy nav</button>
<div id="cy"></div>
</body>
When calling destroy() the navigator element will be deleted but the listeners are not removed. This causes the extention to render even when it's not active any more.
Test script: