MCPcopy
hub / github.com/scutan90/DeepLearning-500-questions / getNode

Function getNode

docsify.js:209–220  ·  view source on GitHub ↗

* Get Node * @param {String|Element} el * @param {Boolean} noCache * @return {Element}

(el, noCache)

Source from the content-addressed store, hash-verified

207 * @return {Element}
208 */
209 function getNode(el, noCache) {
210 if ( noCache === void 0 ) noCache = false;
211
212 if (typeof el === 'string') {
213 if (typeof window.Vue !== 'undefined') {
214 return find(el)
215 }
216 el = noCache ? find(el) : cacheNode[el] || (cacheNode[el] = find(el));
217 }
218
219 return el
220 }
221
222 var $ = inBrowser && document;
223

Callers 9

btnFunction · 0.85
collapseFunction · 0.85
stickyFunction · 0.85
getAndActiveFunction · 0.85
highlightFunction · 0.85
scrollActiveSidebarFunction · 0.85
scrollIntoViewFunction · 0.85
renderNameLinkFunction · 0.85
renderMixinFunction · 0.85

Calls 1

findFunction · 0.85

Tested by

no test coverage detected