Skip to content

Commit 0513768

Browse files
save file
1 parent 9278479 commit 0513768

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

utils/editors/html/auto-save/v2.0/auto-save-v2.0.html

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,7 @@
100100

101101
obj.init = function(){
102102

103-
var content = [...host.shadowRoot.childNodes];
104-
105-
const parent = host.parentNode;
106-
var host2=host.cloneNode(true);
107-
const next = host.nextSibling;
108-
parent.removeChild(host);
109-
parent.insertBefore(host2, next);
110-
111-
var shadow = host.attachShadow({mode:'open',customElements:{}});
112-
shadow.append(...content);
113-
debugger;
114-
var registry = shadow.customElements;
115-
registry.define('check-box',checkbox);
116-
117-
118-
103+
customElements.define('check-box',checkbox);
119104

120105
}//init
121106

0 commit comments

Comments
 (0)