Skip to content

Commit

Permalink
Merge pull request #34 from EPA-WG/develop
Browse files Browse the repository at this point in the history
0.0.16
  • Loading branch information
sashafirsov authored Feb 16, 2024
2 parents f5f1e75 + 7d78497 commit cd87587
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ within template
[github-image]: https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/svg/mark-github.svg
[npm-image]: https://img.shields.io/npm/v/@epa-wg/custom-element.svg
[npm-url]: https://npmjs.org/package/@epa-wg/custom-element
[coverage-image]: https://unpkg.com/@epa-wg/[email protected].15/coverage/coverage.svg
[coverage-url]: https://unpkg.com/@epa-wg/[email protected].15/coverage/lcov-report/index.html
[storybook-url]: https://unpkg.com/@epa-wg/[email protected].15/storybook-static/index.html?path=/story/welcome--introduction
[coverage-image]: https://unpkg.com/@epa-wg/[email protected].16/coverage/coverage.svg
[coverage-url]: https://unpkg.com/@epa-wg/[email protected].16/coverage/lcov-report/index.html
[storybook-url]: https://unpkg.com/@epa-wg/[email protected].16/storybook-static/index.html?path=/story/welcome--introduction
[sandbox-url]: https://stackblitz.com/github/EPA-WG/custom-element?file=index.html
[webcomponents-url]: https://www.webcomponents.org/element/@epa-wg/custom-element
[webcomponents-img]: https://img.shields.io/badge/webcomponents.org-published-blue.svg
Expand Down
6 changes: 4 additions & 2 deletions custom-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,10 @@ CustomElement extends HTMLElement
class DceElement extends HTMLElement
{
static get observedAttributes()
{
return templateDocs.reduce( (ret,t) =>{ ret.push( ...t.params.map(e=>attr(e,'name')) ); return ret; }, [] );
{ return templateDocs.reduce( (ret,t) =>
{ if( t.params ) ret.push( ...t.params.map(e=>attr(e,'name')) );
return ret;
}, [] );
}
connectedCallback()
{ if( this.firstElementChild?.tagName === 'TEMPLATE' )
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epa-wg/custom-element",
"version": "0.0.15",
"version": "0.0.16",
"description": "Declarative Custom Element as W3C proposal PoC with native(XSLT) based templating",
"browser": "custom-element.js",
"module": "custom-element.js",
Expand Down

0 comments on commit cd87587

Please sign in to comment.