Skip to content

Commit c635688

Browse files
save file
1 parent f46bc3b commit c635688

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

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

22

3-
<top-menu style='position:relative'>
3+
<top-menu style='position:relative' v2.0>
44

55
<template shadowrootmode=open>
66

@@ -66,7 +66,7 @@
6666

6767
<script>
6868

69-
(function top_menu({mod,root,node}){
69+
(function top_menu({mod,dom,host}){
7070

7171
var obj = {
7272
version : 'v2.0',
@@ -98,8 +98,7 @@
9898

9999
obj.initdom = function(rootnode){
100100

101-
var root = $.$(rootnode,'top-menu');
102-
var shadow = root.shadowRoot;
101+
var shadow = host.shadowRoot;
103102

104103
menu.add.style(shadow);
105104

0 commit comments

Comments
 (0)