Browse Source

fix v-for parent scope $els test in IE9/10

Evan You 10 years ago
parent
commit
5b809fdaf6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/unit/specs/directives/public/for/for_spec.js

+ 1 - 1
test/unit/specs/directives/public/for/for_spec.js

@@ -871,7 +871,7 @@ if (_.inBrowser) {
     it('access parent scope\'s $els', function (done) {
       var vm = new Vue({
         el: document.createElement('div'),
-        template: '<div data-d=1 v-el:a><div v-for="n in 2">{{ready ? $els.a.dataset.d : 0}}</div></div>',
+        template: '<div data-d=1 v-el:a><div v-for="n in 2">{{ready ? $els.a.getAttribute("data-d") : 0}}</div></div>',
         data: {
           ready: false
         }