UNPKG

jsdom-se

Version:

jsdom fork for silent errors - A JavaScript implementation of the DOM and HTML standards

23 lines (18 loc) 548 B
"use strict"; const EventImpl = require("./Event-impl").implementation; class MutationEventImpl extends EventImpl { initMutationEvent(type, bubbles, cancelable, relatedNode, prevValue, newValue, attrName, attrChange) { if (this._dispatchFlag) { return; } this.initEvent(type, bubbles, cancelable); this.relatedNode = relatedNode; this.prevValue = prevValue; this.newValue = newValue; this.attrName = attrName; this.attrChange = attrChange; } } module.exports = { implementation: MutationEventImpl };