instantiable-fastdom

Allow fastdom to be instantiable so you can clear groups of jobs.

Usage no npm install needed!

<script type="module">
  import instantiableFastdom from 'https://cdn.skypack.dev/instantiable-fastdom';
</script>

README

instantiable-fastdom Build Status

Allow fastdom to be instantiable so you can clear groups of jobs.

Code adapted from fruitmachine-fastdom.

Installation

npm install instantiable-fastdom

Example

var Fastdom = require("instantiable-fastdom");
var fd1 = new Fastdom();
var fd2 = new Fastdom();

fd1.write(fn);  // Never gets called
fd2.write(fn);  // Gets called
fd1.clear();