Skip to content

Commit 9db6f76

Browse files
save file
1 parent 4021eab commit 9db6f76

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

utils/editors/editor/html/main-menu/main-menu.html

Lines changed: 6 additions & 6 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,15 +33,16 @@
3333

3434
<script>
3535

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

3838
var obj = {};
3939

40-
var menu,editor,filemod
40+
var $,menu,editor,filemod
4141
;
4242

4343
obj.initmod = function(params){
4444

45+
$ = params.$;
4546
menu = params.menu;
4647
editor = params.editor;
4748
filemod = params.filemod;
@@ -63,8 +64,7 @@
6364

6465
obj.initdom = function(rootnode){
6566

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

6969
var style = $(shadow,'style');
7070
$.stylesheet.copyrule('#page-inline','.icon',style);
@@ -129,7 +129,7 @@
129129

130130
return obj;
131131

132-
});
132+
})//main_menu
133133

134134

135135
</script>

0 commit comments

Comments
 (0)