Releases: canjs/can-dom-events
Releases · canjs/can-dom-events
v1.1.4
1.1.3
1.1.2
Update to latest dependencies
Merge pull request #40 from canjs/deps-updates updates deps to latest
v1.0.7
Fragmeant
This patch release adds recognition of DocumentFragments as DOM Event Targets. (Note: the changes are in 1.0.5 but somehow releases got jumbled up and there was an existing 1.0.5.)
Updated docs and added cycle detection
v1.0.4
Compatible Conflicts
Major Event
This is now a real project, which is a replacement (along with can-event-dom-*
events) for can-util/dom/events
. So here are the steps to migrate from that to this.
- var domEvents = require('can-util/dom/events/events');
+ var domEvents = require('can-dom-events');
- domEvents.addEventListener.call(target, eventType, handler);
+ domEvents.addEventListener(target, eventType, handler);
- domEvents.removeEventListener.call(target, eventType, handler);
+ domEvents.removeEventListener(target, eventType, handler);
- domEvents.dispatch.call(target, eventType, eventArgs, bubbles);
+ domEvents.dispatch(target, eventType | eventData, bubbles);
The docs have even more cool stuff, check 'em out!