master
parent
20918803a3
commit
a811213f85
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "wkit",
|
"name": "wkit",
|
||||||
"version": "1.12.2",
|
"version": "1.12.3",
|
||||||
"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",
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue