MCPcopy
hub / github.com/mongodb/node-mongodb-native / requiresPageload

Function requiresPageload

docs/2.2/js/navbar.js:5–16  ·  view source on GitHub ↗
($node)

Source from the content-addressed store, hash-verified

3
4 /* Checks a whitelist for non-leaf nodes that should trigger a full page reload */
5 function requiresPageload($node) {
6 if (!docsExcludedNav || !docsExcludedNav.length) {
7 return false;
8 }
9
10 for (var i = 0; i < docsExcludedNav.length; i++) {
11 if ($node[0].href.indexOf(docsExcludedNav[i]) !== -1) {
12 return true;
13 }
14 }
15 return false;
16 }
17
18 /* currently open page */
19 function isCurrentNode($node) {

Callers 1

navbar.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected