From b9a7275c8f08f0d6810be831b36a5d7ecdff0e4c Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Fri, 10 Mar 2017 11:58:27 +0800 Subject: [PATCH] fix(dom): Disable the dom cache when vue is present, fixed #119 --- src/core/util/dom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/util/dom.js b/src/core/util/dom.js index 25346eb..f554c2d 100644 --- a/src/core/util/dom.js +++ b/src/core/util/dom.js @@ -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))) }