synthetic-dom-events
create DOM events for builtin event types
Last updated 5 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 (5 years ago)

7 Versions

  • 0.3.0                                ...           5 years ago
  • 0.2.2                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           8 years ago
  • 0.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 14
This Week 32
This Month 104
Last Day 18
Last Week 34
Last Month 109
Dependencies (0)
None
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |