1.0.1 • Published 7 years ago

custom-event v1.0.1

Weekly downloads
2,117,653
License
MIT
Repository
github
Last release
7 years ago

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);
dom-serialize@gooddata/react-components@gooddata/goodstraplibyawl-ui-components@arisageha/react-lazyloadce-webpack-tempamp-webpack@rsm/wl-ui-components@wpshopify/componentsgee-pee-teelevibestliblevibestlib2levilibtest19levilibtest24levilibtest25levilibtest26levilibtest27levilibtest28levilibtest29@infinitebrahmanuniverse/nolb-custom-ecclibyarntestopea-bootstraap@everything-registry/sub-chunk-1428myui5librarychenmyui5librarymobong-search-dropdownmyreuselibrarynewlibtestalpha-social-chat@zhangyxy/my-rta@zomoz/crossventacoruagaveapi-jsaxios-yet-another-proxy-fix@alta-ng-timeago/hiamtanh-altaapilibtestapp-loader-test@atulbi/stream-chat-react@coffeekraken/sugarcoffeekraken-sugarcontext-modal@betao/dsburratacclib1@cdevine49/react-numeric-inputomni-common-uirangeslider-jsopea-bootstrapreact-emitowt-client-javascriptopendata-search-componentplaykit-js-hls-sondqphoto-viewvoluptateearumvideo-multi-uploadervue-dev-clonetestlib17testweblibapiwebdatabasetest1webdatabasetest10webliblevi3winx-form-winxvcloudcam-playkit-js-hlsslim-slidertable-selectstock-ticker-react-widgetstream-chat-react-fixedstream-chat-react-alpharegapclic-claccustompackagetestvarthinicrossvent@agallagher777/stream-chat-react@apthletic/react-textarea-autocompleteanotherweblib@internetarchive/dweb-objectsdom-inserteddependent-select-boxes@evo/gotcha@evanminto/async-form@fabwcie/ckeditor5-preview@chatsight/gee-pee-teefenglin-uploaderfhir2fixed_form_builder@n8tive/multi-form@ngxvoice/ngx-voicelistner@pcllab/plugin-corehankohan-loader@parkcedar/leaflet@packaged-ui/exit-event@packaged-ui/frame-courier@sdistefano/react-textarea-autocomplete@seculum/vue-dev-clonelevikotlinliblevikotlintestlevilibtest10levilibtest11
1.0.1

7 years ago

1.0.0

9 years ago