]> git.lizzy.rs Git - rust.git/commit
rustdoc: make expand/collapse all ephemeral
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>
Sun, 18 Apr 2021 21:33:33 +0000 (14:33 -0700)
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>
Mon, 19 Apr 2021 05:44:10 +0000 (22:44 -0700)
commit39b299f8a46fd3c2467a61ce7a5b9829ce03fc7d
tree5d689328d30c0374fb863021e079e523f9c54f4e
parent392ba2ba1a7d6c542d2459fb8133bebf62a4a423
rustdoc: make expand/collapse all ephemeral

The `[+]` in the upper right of a rustdoc page expands or collapses all
toggles on the page. That state is stored across page loads, but is used
inconsistently. This change explicitly stops storing or using the state.
src/librustdoc/html/static/main.js