UNPKG

svgdom

Version:

Straightforward DOM implementation for SVG, HTML and XML

9 lines (8 loc) 220 B
import { Event } from './Event.js' export class CustomEvent extends Event { constructor (name, props = {}) { super(name) this.detail = props.detail || null this.cancelable = props.cancelable || false } }