Skip to content

Commit 50a42ec

Browse files
save file
1 parent 1ee732e commit 50a42ec

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

utils/editors/js-console/html/main-menu/v2.0/main-menu-v2.0.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33

4-
<main-menu style='position:relative'>
4+
<main-menu v2.0 style='position:relative'>
55

66
<template shadowrootmode=open>
77

@@ -33,7 +33,7 @@
3333

3434
<script>
3535

36-
(function({mod,root,node}){
36+
(function main_menu({mod,dom,host}){
3737

3838
var obj = {};
3939

@@ -65,8 +65,7 @@
6565

6666
obj.initdom = function(rootnode){
6767

68-
var root = $.$(rootnode,'main-menu');
69-
var shadow = root.shadowRoot;
68+
var shadow = host.shadowRoot;
7069

7170
var style = $(shadow,'style');
7271
$.stylesheet.copyrule('#page-inline','.icon',style);
@@ -129,7 +128,7 @@
129128

130129
return obj;
131130

132-
});
131+
})//main_menu
133132

134133
</script>
135134

0 commit comments

Comments
 (0)