Reexported functions are now declared directly as "windows" field
This commit is contained in:
parent
deaf5e200e
commit
872ddf243e
1 changed files with 6 additions and 11 deletions
|
@ -535,7 +535,7 @@ function defocusSearchBar() {
|
||||||
return s1_len + s2_len;
|
return s1_len + s2_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
function initSearch(rawSearchIndex) {
|
window.initSearch = function(rawSearchIndex) {
|
||||||
var MAX_LEV_DISTANCE = 3;
|
var MAX_LEV_DISTANCE = 3;
|
||||||
var MAX_RESULTS = 200;
|
var MAX_RESULTS = 200;
|
||||||
var GENERICS_DATA = 1;
|
var GENERICS_DATA = 1;
|
||||||
|
@ -1930,12 +1930,11 @@ function defocusSearchBar() {
|
||||||
sidebar.appendChild(div);
|
sidebar.appendChild(div);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
window.initSearch = initSearch;
|
|
||||||
|
|
||||||
// delayed sidebar rendering.
|
// delayed sidebar rendering.
|
||||||
function initSidebarItems(items) {
|
window.initSidebarItems = function(items) {
|
||||||
var sidebar = document.getElementsByClassName("sidebar-elems")[0];
|
var sidebar = document.getElementsByClassName("sidebar-elems")[0];
|
||||||
var current = window.sidebarCurrent;
|
var current = window.sidebarCurrent;
|
||||||
|
|
||||||
|
@ -1997,9 +1996,7 @@ function defocusSearchBar() {
|
||||||
block("foreigntype", "Foreign Types");
|
block("foreigntype", "Foreign Types");
|
||||||
block("keyword", "Keywords");
|
block("keyword", "Keywords");
|
||||||
block("traitalias", "Trait Aliases");
|
block("traitalias", "Trait Aliases");
|
||||||
}
|
};
|
||||||
|
|
||||||
window.initSidebarItems = initSidebarItems;
|
|
||||||
|
|
||||||
window.register_implementors = function(imp) {
|
window.register_implementors = function(imp) {
|
||||||
var implementors = document.getElementById("implementors-list");
|
var implementors = document.getElementById("implementors-list");
|
||||||
|
@ -2699,7 +2696,7 @@ function defocusSearchBar() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function addSearchOptions(crates) {
|
window.addSearchOptions = function(crates) {
|
||||||
var elem = document.getElementById("crate-search");
|
var elem = document.getElementById("crate-search");
|
||||||
|
|
||||||
if (!elem) {
|
if (!elem) {
|
||||||
|
@ -2744,9 +2741,7 @@ function defocusSearchBar() {
|
||||||
if (search_input) {
|
if (search_input) {
|
||||||
search_input.removeAttribute('disabled');
|
search_input.removeAttribute('disabled');
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
window.addSearchOptions = addSearchOptions;
|
|
||||||
|
|
||||||
function buildHelperPopup() {
|
function buildHelperPopup() {
|
||||||
var popup = document.createElement("aside");
|
var popup = document.createElement("aside");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue