synthetic-dom-events
create DOM events for builtin event types
Last updated 9 years ago by defunctzombie .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install synthetic-dom-events 
SYNC missed versions from official npm registry.

synthetic-dom-events

Build Status

example

var event = require('synthetic-dom-events');

// event just returns a correctly created dom event object
// you are responsible for emitting it
var ev = event('click', { button: 2 });

var element = document.createElement('button');
element.dispatchEvent(ev);

// or legacy IE
//element.fireEvent('on' + ev.type, ev);

Current Tags

  • 0.3.0                                ...           latest (9 years ago)

7 Versions

  • 0.3.0                                ...           9 years ago
  • 0.2.2                                ...           11 years ago
  • 0.2.1                                ...           11 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           12 years ago
  • 0.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE