improve:add local variable declaration (#5462)

This commit is contained in:
laoxiong 2017-04-18 11:42:38 +08:00 committed by Evan You
parent c0da43d22f
commit 3b4d16b032

View File

@ -327,6 +327,7 @@ export function createPatchFunction (backend) {
function removeAndInvokeRemoveHook (vnode, rm) {
if (isDef(rm) || isDef(vnode.data)) {
let i
const listeners = cbs.remove.length + 1
if (isDef(rm)) {
// we have a recursively passed down rm callback