Skip to content

Commit 32ca8e7

Browse files
committed
fix svg e2e
1 parent 119286f commit 32ca8e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/svg/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<label>{{stat.label}}</label>
3939
<input type="range" v-model="stat.value" min="0" max="100">
4040
<span>{{stat.value}}</span>
41-
<button @click="remove(stat)">X</button>
41+
<button @click="remove(stat)" class="remove">X</button>
4242
</div>
4343
<form id="add">
4444
<input name="newlabel" v-model="newLabel">

src/runtime/instance/render.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ function resolveSlots (vm, children) {
123123
}
124124
}
125125

126+
const keysToDiff = ['class', 'style', 'attrs', 'props', 'directives']
126127
function parentDataChanged (data, oldData) {
127-
const keys = Object.keys(oldData)
128128
let key, old, cur, i, l, j, k
129-
for (i = 0, l = keys.length; i < l; i++) {
130-
key = keys[i]
129+
for (i = 0, l = keysToDiff.length; i < l; i++) {
130+
key = keysToDiff[i]
131131
cur = data[key]
132132
old = oldData[key]
133133
if (key === 'on') continue

0 commit comments

Comments
 (0)