Skip to content

Commit bcde1e3

Browse files
save file
1 parent b4017c1 commit bcde1e3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@
100100

101101
obj.init = function(){
102102

103-
104-
var registry = new CustomElementRegistry();
105-
registry.define('check-box',checkbox);
103+
var content = host.shadowRoot.cloneNode(true);
106104

107-
var content = host.shadowRoot.cloneNode(true);
105+
var shadow2 = host.attachShadow({mode:'open',customElements:{}});
106+
var registry = shadow.customElements;
107+
108+
registry.define('check-box',checkbox);
108109

109-
var shadow = host.attachShadow({mode:'open',customElements:registry});
110-
shadow.append(content);
110+
shadow2.append(content);
111111

112112

113113
}//init

0 commit comments

Comments
 (0)