This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-01 22:46:04 +00:00

15 lines
311 B
JavaScript

"use strict";
var Event = require("./event");
function CustomEvent(type, customData, target) {
this.initEvent(type, false, false, target);
this.detail = customData.detail || null;
}
CustomEvent.prototype = new Event();
CustomEvent.prototype.constructor = CustomEvent;
module.exports = CustomEvent;