Skip to content

Commit 0c7680d

Browse files
save file
1 parent 5688705 commit 0c7680d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

utils/editors/html/top-menu/v2.0/top-menu-v2.0.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
<script>
6666

67-
(function({mod,root,node}){
67+
(function top_menu({mod,dom,host}){
6868

6969
var obj = {
7070
version : 'v2.0'
@@ -100,8 +100,7 @@
100100

101101
obj.initdom = function(rootnode){
102102

103-
var root = $.$(rootnode,'top-menu');
104-
var shadow = root.shadowRoot;
103+
var shadow = host.shadowRoot;
105104

106105
menu.add.style(shadow);
107106

@@ -128,7 +127,7 @@
128127

129128
return obj;
130129

131-
});
130+
})//top_menu
132131

133132
</script>
134133

0 commit comments

Comments
 (0)