You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
639 B
25 lines
639 B
"use strict";
|
|
|
|
const EventImpl = require("./Event-impl").implementation;
|
|
|
|
const MessageEventInit = require("../generated/MessageEventInit");
|
|
|
|
class MessageEventImpl extends EventImpl {
|
|
initMessageEvent(type, bubbles, cancelable, data, origin, lastEventId, source, ports) {
|
|
if (this._dispatchFlag) {
|
|
return;
|
|
}
|
|
|
|
this.initEvent(type, bubbles, cancelable);
|
|
this.data = data;
|
|
this.origin = origin;
|
|
this.lastEventId = lastEventId;
|
|
this.source = source;
|
|
this.ports = ports;
|
|
}
|
|
}
|
|
MessageEventImpl.defaultInit = MessageEventInit.convert(undefined);
|
|
|
|
module.exports = {
|
|
implementation: MessageEventImpl
|
|
};
|
|
|