Skip to content

Commit b7becb1

Browse files
authored
Merge branch 'main' into toggle-redundancy
2 parents 812817e + b94120f commit b7becb1

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

packages/viewer/src/components/Shared/Formula/Atom.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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

packages/viewer/src/components/Shared/Typeset.svelte

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
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
@@ -48,10 +43,6 @@
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

0 commit comments

Comments
 (0)