File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
utils/editors/markdown-editor/html/main-menu/v2.0 Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 11
22
33
4- < main-menu style ='position:relative '>
4+ < main-menu v2.0 style ='position:relative '>
55
66 < template shadowrootmode =open >
77
3232
3333 < script >
3434
35- ( function main_menu ( { mod, root , node } ) {
35+ ( function main_menu ( { mod, dom , host } ) {
3636
37- var obj = { } ;
37+ var obj = {
38+ version : 'v2.0' ,
39+ } ;
3840
3941
4042 var $ , menu , editor
6769
6870 obj . initdom = function ( rootnode ) {
6971
70- var root = $ . $ ( rootnode , 'main-menu' ) ;
71- var shadow = root . shadowRoot ;
72+ var shadow = host . shadowRoot ;
7273
7374 var style = $ ( shadow , 'style' ) ;
7475 $ . stylesheet . copyrule ( '#page-inline' , '.icon' , style ) ;
152153
153154 return obj ;
154155
155- } ) ; //main_menu
156+ } ) //main_menu
156157
157158
158159 </ script >
You can’t perform that action at this time.
0 commit comments