1
0
forked from Rowland/EG
EG/Cesium-1.132/node_modules/custom-event
2025-08-25 17:48:13 +08:00
..
test 补充Cesium文件 2025-08-25 17:48:13 +08:00
.npmignore 补充Cesium文件 2025-08-25 17:48:13 +08:00
.travis.yml 补充Cesium文件 2025-08-25 17:48:13 +08:00
History.md 补充Cesium文件 2025-08-25 17:48:13 +08:00
index.js 补充Cesium文件 2025-08-25 17:48:13 +08:00
LICENSE 补充Cesium文件 2025-08-25 17:48:13 +08:00
Makefile 补充Cesium文件 2025-08-25 17:48:13 +08:00
package.json 补充Cesium文件 2025-08-25 17:48:13 +08:00
README.md 补充Cesium文件 2025-08-25 17:48:13 +08:00

custom-event

Cross-browser CustomEvent constructor

Sauce Test Status

Build Status

https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent.CustomEvent

Installation

$ npm install custom-event

Example

var CustomEvent = require('custom-event');

// add an appropriate event listener
target.addEventListener('cat', function(e) { process(e.detail) });

// create and dispatch the event
var event = new CustomEvent('cat', {
  detail: {
    hazcheeseburger: true
  }
});
target.dispatchEvent(event);