switch to doneEach and cache #main dom
This commit is contained in:
parent
1aa6636ba8
commit
9c54bafae4
8 changed files with 27 additions and 33 deletions
|
|
@ -10,7 +10,7 @@ const cacheNode = {}
|
|||
*/
|
||||
export function getNode (el, noCache = false) {
|
||||
if (typeof el === 'string') {
|
||||
el = noCache ? find(el) : (cacheNode[el] || find(el))
|
||||
el = noCache ? find(el) : (cacheNode[el] || (cacheNode[el] = find(el)))
|
||||
}
|
||||
|
||||
return el
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue