Skip to content

v2.1.0

Compare
Choose a tag to compare
@abhchand abhchand released this 26 Dec 04:50
· 16 commits to master since this release

Breaking Changes

Old (2.0.0)

Previously, you neeed to call VanillaTreeViewer.renderAll() manually, after the DOM Content loaded:

<script>
  document.addEventListener('DOMContentLoaded', function() {
    VanillaTreeViewer.renderAll();
  }, false);
</script>

New (2.1.0)

To make this simpler going forward,

  1. renderAll() will correctly handle delaying itself till DOM content has loaded. You no longer need to worry about wrapping it in document.addEventListener.

  2. Additionally, we now recommend calling renderAll() on script load (with onload) so it doesn't have to be called separately as a one-off statement.

Example:

<!-- Note the `onload` call within the `<script>` tag. -->
<script
  type="text/javascript"
  onload="VanillaTreeViewer.renderAll()"
  src="..."
</script>

Other Changes