I'm trying to add CustomEvent so that a library I've built will work in both browser and Node. Your code looks like its what is needed EXCEPT it calls document.createEventObject, and in node there is document.createEvent, but not document.createEventObject.
Do you know of a version of custom-event that works in Node? Or is there a way to add that functionality.
I'm trying to add CustomEvent so that a library I've built will work in both browser and Node. Your code looks like its what is needed EXCEPT it calls document.createEventObject, and in node there is document.createEvent, but not document.createEventObject.
Do you know of a version of custom-event that works in Node? Or is there a way to add that functionality.