File tree Expand file tree Collapse file tree
packages/viewer/src/components/Shared Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 export let value: Atom <Property >
88 export let link: boolean = true
99 export let emphasizedProperties: Set <Property > = new Set ()
10- let emphasized = emphasizedProperties .has (value .property )
10+ $ : emphasized = emphasizedProperties .has (value .property )
1111 </script >
1212
1313{value .value === null ? ' ?' : value .value ? ' ' : ' ¬' }{#if link }<Link .Property
Original file line number Diff line number Diff line change 2828 }
2929 }
3030
31- /**
32- * We're adding "real" <a/> tags to the DOM, even for parsed internal
33- * links, but we really want to use the router to navigate. So we manually
34- * bind click handlers to trigger navigation.
35- */
3631 for (const link of container .getElementsByClassName (' internal-link' )) {
3732 /**
3833 * Unloading a DOM node should remove any bound listeners, but it's
4843 })
4944
5045 link .setAttribute (' _wired' , ' true' )
51- link .addEventListener (' click' , e => {
52- e .preventDefault ()
53- goto ((e .target as HTMLAnchorElement ).href )
54- })
5546 }
5647 }
5748
You can’t perform that action at this time.
0 commit comments