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-testapilibtestfenglin-uploaderfhir2fixed_form_builder@cdevine49/react-numeric-input@chatsight/gee-pee-tee@betao/dscclib1coffeekraken-sugarclic-claccrossventcontext-modalcustompackagetestvarthinidependent-select-boxesburratadom-inserted@apthletic/react-textarea-autocomplete@agallagher777/stream-chat-react@atulbi/stream-chat-react@alta-ng-timeago/hiamtanh-alta
1.0.1

9 years ago

1.0.0

11 years ago