diff --git a/README.md b/README.md index 2e014be..4248235 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ const SPEC = { shadow: 'open', // omit for light DOM template: '', css: ':host { display: block; }', - events: ['click'], + events: { click: true }, element: { input: 'input.name', // refs.input: HTMLInputElement | null (from the tag) thing: '.thing', // refs.thing: Element | null (no tag to go on) @@ -47,6 +47,7 @@ ExampleElement.observedAttributes; // readonly ('user-id' | 'min' | 'is-ready' | - **Light DOM**: `template` is appended on first connect; `css` is added once per element type, as a `