rustdoc: remove unused JS IIFE from main.js
This [IIFE] made sense when it was added in
f0683f98fa
and there was a local variable
scoped to it, but now it only sets two globals, so it does nothing.
[IIFE]: https://developer.mozilla.org/en-US/docs/Glossary/IIFE "immediately invoked function expression"
This commit is contained in:
parent
6d651a295e
commit
5649cbb9f8
@ -47,10 +47,8 @@ function blurHandler(event, parentElem, hideCallback) {
|
||||
}
|
||||
}
|
||||
|
||||
(function() {
|
||||
window.rootPath = getVar("root-path");
|
||||
window.currentCrate = getVar("current-crate");
|
||||
}());
|
||||
window.rootPath = getVar("root-path");
|
||||
window.currentCrate = getVar("current-crate");
|
||||
|
||||
function setMobileTopbar() {
|
||||
// FIXME: It would be nicer to generate this text content directly in HTML,
|
||||
|
Loading…
Reference in New Issue
Block a user