mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Omit unnecessary recomputations for annotations
This commit is contained in:
parent
cb57ce986e
commit
21b7bc4999
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
8
material/assets/javascripts/bundle.eb994cec.min.js.map
Normal file
8
material/assets/javascripts/bundle.eb994cec.min.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -213,7 +213,7 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/bundle.3a58056d.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.eb994cec.min.js' | url }}"></script>
|
||||
{% for path in config["extra_javascript"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -16,5 +16,5 @@
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
{{ super() }}
|
||||
<script src="{{ 'overrides/assets/javascripts/bundle.de54bb68.min.js' | url }}"></script>
|
||||
<script src="{{ 'overrides/assets/javascripts/bundle.ab1cf86a.min.js' | url }}"></script>
|
||||
{% endblock %}
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
import {
|
||||
Observable,
|
||||
distinctUntilChanged,
|
||||
fromEvent,
|
||||
map,
|
||||
merge,
|
||||
@ -60,6 +61,7 @@ export function watchElementFocus(
|
||||
? el.contains(active)
|
||||
: false
|
||||
}),
|
||||
startWith(el === getActiveElement())
|
||||
startWith(el === getActiveElement()),
|
||||
distinctUntilChanged()
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user