We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c427f7 commit 32971d8Copy full SHA for 32971d8
src/core/vdom/helpers.js
@@ -104,13 +104,15 @@ export function updateListeners (
104
}
105
add(event, cur.invoker, capture)
106
107
- } else if (Array.isArray(old)) {
108
- old.length = cur.length
109
- for (let i = 0; i < old.length; i++) old[i] = cur[i]
110
- on[name] = old
111
- } else {
112
- old.fn = cur
113
+ } else if (cur !== old) {
+ if (Array.isArray(old)) {
+ old.length = cur.length
+ for (let i = 0; i < old.length; i++) old[i] = cur[i]
+ on[name] = old
+ } else {
+ old.fn = cur
114
115
+ }
116
117
118
for (name in oldOn) {
0 commit comments