diff --git a/docs/api/dom.html b/docs/api/dom.html index 66d1f52dc..b182aa5e4 100644 --- a/docs/api/dom.html +++ b/docs/api/dom.html @@ -87,6 +87,8 @@ event types that do not bubble. Read more here https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener about the `useCapture` and its purpose. +The other option is `preventDefault` that is set to false by default. +If set to true, the driver will automatically call `preventDefault()` on every event. `DOMSource.elements()` returns a stream of the DOM element(s) matched by the selectors in the DOMSource. Also, `DOMSource.select(':root').elements()` diff --git a/dom/CHANGELOG.md b/dom/CHANGELOG.md index a231804f7..98585d8e8 100644 --- a/dom/CHANGELOG.md +++ b/dom/CHANGELOG.md @@ -1,3 +1,18 @@ + +# 17.2.0 (2017-05-15) + + +### Features + +* **dom:** add preventDefault option ([5d829a8](https://github.com/cyclejs/cyclejs/commit/5d829a8)) + + +### Performance Improvements + +* **dom:** avoid an object allocation in MainDOMSource ([fc218cf](https://github.com/cyclejs/cyclejs/commit/fc218cf)) + + + # 17.1.0 (2017-03-28) diff --git a/dom/package.json b/dom/package.json index f763e18fe..6f8f9d56c 100644 --- a/dom/package.json +++ b/dom/package.json @@ -1,6 +1,6 @@ { "name": "@cycle/dom", - "version": "17.1.0", + "version": "17.2.0", "description": "The standard DOM Driver for Cycle.js, based on Snabbdom", "license": "MIT", "homepage": "https://cycle.js.org",