synthetic-dom-events
create DOM events for builtin event types
Last updated 6 years ago by defunctzombie .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (6 years ago)

7 Versions

  • 0.3.0                                ...           6 years ago
  • 0.2.2                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
  • 0.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 13
This Month 75
Last Day 10
Last Week 12
Last Month 219
Dependencies (0)
None
Dev Dependencies (1)

Copyright 2014 - 2017 © taobao.org |