mouseleave shim utility
mouseleave event emulation
var mouseleave = require'mouseleave';var div = documentquerySelector;mouseleavedivconsole.log'the mouse is here';;
mouseleave returns a function you can use to no longer react to mouseleave events. Call this function and the previously bound event will be unbound.
var unbind = mouseleavedivconsole.log'the mouse is here';;// will listen for mouseleave events// call `unbind` to stop listeningunbind;
$ npm run test-local
Then open the url it gives you in a local browser.