Icard/angular-clarity-master(work.../node_modules/custom-event
realSnehal 400e0876de frontend 2024-07-16 20:25:36 +05:30
..
test frontend 2024-07-16 20:25:36 +05:30
.npmignore frontend 2024-07-16 20:25:36 +05:30
.travis.yml frontend 2024-07-16 20:25:36 +05:30
History.md frontend 2024-07-16 20:25:36 +05:30
LICENSE frontend 2024-07-16 20:25:36 +05:30
Makefile frontend 2024-07-16 20:25:36 +05:30
README.md frontend 2024-07-16 20:25:36 +05:30
index.js frontend 2024-07-16 20:25:36 +05:30
package.json frontend 2024-07-16 20:25:36 +05:30

README.md

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);