1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Oinktube/node_modules/custom-event
2024-03-07 11:31:51 -03:00
..
test Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
.npmignore Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
.travis.yml Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
History.md Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
index.js Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
LICENSE Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
Makefile Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
package.json Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
README.md Update npm and add the jquery mask 2024-03-07 11:31:51 -03: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);