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
|
|
@ -161,7 +161,7 @@ function getNode (el, noCache) {
|
|||
if ( noCache === void 0 ) 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