Skip to content

Commit 4021eab

Browse files
save file
1 parent 4c8d35f commit 4021eab

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

utils/editors/editor/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.0style='position:relative'>
55

66
<template shadowrootmode=open>
77

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

3434
<script>
3535

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

3838
var obj = {};
3939

@@ -64,8 +64,7 @@
6464

6565
obj.initdom = function(rootnode){
6666

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

7069
var style = $(shadow,'style');
7170
$.stylesheet.copyrule('#page-inline','.icon',style);
@@ -130,7 +129,7 @@
130129

131130
return obj;
132131

133-
});
132+
})//main_menu
134133

135134

136135
</script>

0 commit comments

Comments
 (0)