* Get Node * @param {String|Element} el * @param {Boolean} noCache * @return {Element}
(el, noCache)
| 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 |
no test coverage detected