https://github.com/jongacnik/etrig
Super simple programmatic DOM event trigger helper for the browser.
https://github.com/jongacnik/etrig
Last synced: about 1 year ago
JSON representation
Super simple programmatic DOM event trigger helper for the browser.
- Host: GitHub
- URL: https://github.com/jongacnik/etrig
- Owner: jongacnik
- Created: 2014-11-17T23:33:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-12T00:43:03.000Z (about 11 years ago)
- Last Synced: 2025-03-13T07:47:03.441Z (over 1 year ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# etrig
Super simple programmatic DOM event trigger helper for the browser.
## Getting Started
npm install etrig
etrig is meant to be consumed in a [CommonJS](http://www.commonjs.org/), [Browserify](http://browserify.org/) environment:
var trigger = require('etrig');
// the following will trigger a load event on [data-button]
trigger(document.querySelector('[data-button]'), 'load');
## Todo
- Tests
- Event Details