mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-01-31 03:43:46 +01:00
Refactored resize observer
This commit is contained in:
parent
a339a8afb6
commit
b825d222a4
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
material/assets/javascripts/bundle.bf7b0f12.min.js
vendored
Normal file
2
material/assets/javascripts/bundle.bf7b0f12.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/bundle.bf7b0f12.min.js.map
Normal file
1
material/assets/javascripts/bundle.bf7b0f12.min.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.15ed33ca.min.js",
|
"assets/javascripts/bundle.js": "assets/javascripts/bundle.bf7b0f12.min.js",
|
||||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.15ed33ca.min.js.map",
|
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.bf7b0f12.min.js.map",
|
||||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.08c56446.min.js",
|
"assets/javascripts/vendor.js": "assets/javascripts/vendor.08c56446.min.js",
|
||||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.08c56446.min.js.map",
|
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.08c56446.min.js.map",
|
||||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.8c7e0a7e.min.js",
|
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.8c7e0a7e.min.js",
|
||||||
|
@ -185,7 +185,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/vendor.08c56446.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/vendor.08c56446.min.js' | url }}"></script>
|
||||||
<script src="{{ 'assets/javascripts/bundle.15ed33ca.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.bf7b0f12.min.js' | url }}"></script>
|
||||||
{%- set translations = {} -%}
|
{%- set translations = {} -%}
|
||||||
{%- for key in [
|
{%- for key in [
|
||||||
"clipboard.copy",
|
"clipboard.copy",
|
||||||
|
@ -26,7 +26,6 @@ import {
|
|||||||
Observable,
|
Observable,
|
||||||
Subject,
|
Subject,
|
||||||
defer,
|
defer,
|
||||||
merge,
|
|
||||||
of
|
of
|
||||||
} from "rxjs"
|
} from "rxjs"
|
||||||
import {
|
import {
|
||||||
@ -77,7 +76,7 @@ const observer$ = defer(() => of(
|
|||||||
})
|
})
|
||||||
))
|
))
|
||||||
.pipe(
|
.pipe(
|
||||||
switchMap(resize => merge(of(resize), NEVER)
|
switchMap(resize => NEVER.pipe(startWith(resize))
|
||||||
.pipe(
|
.pipe(
|
||||||
finalize(() => resize.disconnect())
|
finalize(() => resize.disconnect())
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user