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-clonecauseway-concrete-stylesiscroll-componentka-flow.jshan-loaderhankolevikotlinliblevikotlintestlevilibtest10levilibtest11levilibtest12levilibtest13levilibtest14levilibtest15levilibtest18levilibtest21levilibtest22levilibtest23levilibtest3levilibtest4levilibtest5levilibtest6levilibtest7levilibtest8levilibtest9levimultiplatform10levimultiplatformtestlevimultitestleviapitest1levicommontestlevicommontest1levicotestlevilibtest16levilibtest17makeup-switch-classkotlinapitestkotlinapitest1kotlinapitest2@webscopeio/react-textarea-autocomplete@thedoctor0/vuex-shared-mutations@testshencli/cli@zhangyxy/my-rtaalpha-social-chat@zomoz/crossventagaveapi-jsacoruaxios-yet-another-proxy-fixanotherweblibapp-loader-testapilibtest@atulbi/stream-chat-react@gooddata/goodstrap@gooddata/react-components@agallagher777/stream-chat-react@coffeekraken/sugar@alta-ng-timeago/hiamtanh-altastream-chat-react-fixedstream-chat-react-alphastock-ticker-react-widget@betao/ds@cdevine49/react-numeric-input@chatsight/gee-pee-teewebliblevi3@ngxvoice/ngx-voicelistner@n8tive/multi-form@sdistefano/react-textarea-autocomplete@seculum/vue-dev-clonemultiplatformlevimpd-parser-1
1.0.1

9 years ago

1.0.0

11 years ago