Browse Source

guard on

dev
Evan You 9 years ago
parent
commit
7926f6ae83
  1. 2
      src/runtime/dom-backend/modules/events.js

2
src/runtime/dom-backend/modules/events.js

@ -4,7 +4,7 @@ function updateDOMListeners (oldVnode, vnode) {
if (!oldVnode.data.on && !vnode.data.on) {
return
}
const on = vnode.data.on
const on = vnode.data.on || {}
const oldOn = oldVnode.data.on || {}
updateListeners(on, oldOn, (event, handler, capture) => {
vnode.elm.addEventListener(event, handler, capture)

Loading…
Cancel
Save