8000 fix v-for parent scope $els test in IE9/10 · zhangking/vue@5b809fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b809fd

Browse files
committed
fix v-for parent scope $els test in IE9/10
1 parent 97d8862 commit 5b809fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/specs/directives/public/for/for_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ if (_.inBrowser) {
871871
it('access parent scope\'s $els', function (done) {
872872
var vm = new Vue({
873873
el: document.createElement('div'),
874-
template: '<div data-d=1 v-el:a><div v-for="n in 2">{{ready ? $els.a.dataset.d : 0}}</div></div>',
874+
template: '<div data-d=1 v-el:a><div v-for="n in 2">{{ready ? $els.a.getAttribute("data-d") : 0}}</div></div>',< 46C1 /span>
875875
data: {
876876
ready: false
877877
}

0 commit comments

Comments
 (0)
0