Skip to content

Commit ffb3306

Browse files
Set the lit-html event context to this and add a @eventOptions decorator (#244)
1 parent 996f509 commit ffb3306

File tree

8 files changed

+135
-55
lines changed

8 files changed

+135
-55
lines changed

CHANGELOG.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212

1313
## Unreleased
1414

15-
### Changed
16-
17-
### Added
18-
* A `disconnectedCallback()` function was added (https://github.com/Polymer/lit-element/pull/213).
19-
2015
### Changed
2116
* LitElement changed to a non-abstract class to be more compatible with the JavaScript mixin pattern
22-
(https://github.com/Polymer/lit-element/issues/227).
17+
([#227](https://github.com/Polymer/lit-element/issues/227)).
18+
* Update lit-html dependency to ^0.12.0 ([#244](https://github.com/Polymer/lit-element/pull/244)),
19+
* Passes the components `this` reference to lit-html as the `eventContext`, allowing unbound event listener methods. ([#244](https://github.com/Polymer/lit-element/pull/244)).
20+
### Added
21+
* A `disconnectedCallback()` method was added to UpdatingElement([#213](https://github.com/Polymer/lit-element/pull/213)).
22+
* Added `@eventOptions()` decorator for setting event listener options on methods ([#244](https://github.com/Polymer/lit-element/pull/244)).
23+
<!-- ### Removed -->
24+
<!-- ### Fixed -->
2325

2426
## [0.6.1] - 2018-09-17
2527

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ and renders declaratively using `lit-html`.
6565
* expression: ``` html`<div>${this.disabled ? 'Off' : 'On'}</div>` ```
6666
* property: ``` html`<x-foo .bar="${this.bar}"></x-foo>` ```
6767
* attribute: ``` html`<div class="${this.color} special"></div>` ```
68-
* event handler: ``` html`<button @click="${(e) => this._clickHandler(e)}"></button>` ```
68+
* event handler: ``` html`<button @click="${this._clickHandler}"></button>` ```
6969

7070
## Getting started
7171

package-lock.json

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"typings": "lit-element.d.ts",
4242
"dependencies": {
43-
"lit-html": "^0.11.4"
43+
"lit-html": "^0.12.0"
4444
},
4545
"publishConfig": {
4646
"access": "public"

0 commit comments

Comments
 (0)