Compare commits

..

No commits in common. "master" and "1.12.2" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "wkit", "name": "wkit",
"version": "1.12.3", "version": "1.12.2",
"type": "module", "type": "module",
"description": "A library for building fast, lightweight web components.", "description": "A library for building fast, lightweight web components.",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -169,8 +169,8 @@ export class Component extends HTMLElement {
delete this.props delete this.props
} }
static reg(name = '', prefix = 'wc') { static reg(name = '', prefix = 'wc-') {
let key = prefix + '-' + name let key = prefix + name
if (!customElements.get(key)) { if (!customElements.get(key)) {
customElements.define(key, this) customElements.define(key, this)
} }