1.0.1 • Published 9 years ago

custom-event v1.0.1

Weekly downloads
2,117,653
License
MIT
Repository
github
Last release
9 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-serializelibyawl-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-1428table-selectwinx-form-winxwebdatabasetest1webdatabasetest10testweblibapitestlib17vcloudcam-playkit-js-hlsvideo-multi-uploadervoluptateearumvue-dev-clone@pcllab/plugin-corecauseway-concrete-stylesiscroll-componentka-flow.jsstream-chat-react-fixedstream-chat-react-alphastock-ticker-react-widget@apthletic/react-textarea-autocomplete@atulbi/stream-chat-react@agallagher777/stream-chat-react@alta-ng-timeago/hiamtanh-alta@betao/ds@cdevine49/react-numeric-input@chatsight/gee-pee-tee@coffeekraken/sugarwebliblevi3@evo/gotcha@gooddata/react-components@gooddata/goodstrap@evanminto/async-form@ngxvoice/ngx-voicelistner@n8tive/multi-form@fabwcie/ckeditor5-preview@internetarchive/dweb-objects@hieuquang2212/form@inesfidalgo/forge@raxuk/rangeslider-js@packaged-ui/frame-courier@packaged-ui/exit-event@parkcedar/leaflet@sdistefano/react-textarea-autocomplete@seculum/vue-dev-clonemultiplatformlevimpd-parser-1mynancemfb-app-loader-testmiguelcostero-ng2-toastymyui5librarymobomyreuselibrarymyui5librarychenopendata-search-componentowt-client-javascriptomni-common-uiopea-bootstrapreact-emitsajisipregapng-search-dropdownnewlibtestphoto-viewplaykit-js-hls-sondqquibusdamquiarangeslider-jsslim-sliderhan-loaderhankolevikotlinliblevikotlintestlevilibtest10levilibtest11levilibtest12levilibtest13levilibtest14levilibtest15levilibtest18levilibtest21levilibtest22levilibtest23
1.0.1

9 years ago

1.0.0

10 years ago