Skip to content

Commit

Permalink
fix(dom): Disable the dom cache when vue is present, fixed #119
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Mar 10, 2017
1 parent 0fddd1c commit b9a7275
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/util/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const cacheNode = {}
*/
export function getNode (el, noCache = false) {
if (typeof el === 'string') {
if (typeof window.Vue !== 'undefined') {
return find(el)
}
el = noCache ? find(el) : (cacheNode[el] || (cacheNode[el] = find(el)))
}

Expand Down

0 comments on commit b9a7275

Please sign in to comment.