mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 11:15:36 -05:00
general cleanup before merging
This commit is contained in:
@@ -11,17 +11,11 @@ export class PyButton extends BaseEvalElement {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
// attach shadow so we can preserve the element original innerHtml content
|
||||
// this.shadow = this.attachShadow({ mode: 'open'});
|
||||
|
||||
// this.wrapper = document.createElement('slot');
|
||||
// this.shadow.appendChild(this.wrapper);
|
||||
if (this.hasAttribute('label')) {
|
||||
this.label = this.getAttribute('label');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
connectedCallback() {
|
||||
this.code = htmlDecode(this.innerHTML);
|
||||
this.mount_name = this.id.split("-").join("_");
|
||||
@@ -60,5 +54,3 @@ export class PyButton extends BaseEvalElement {
|
||||
console.log('py-button connected');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user