Browse Source

Merge pull request #893 from KuroGuo/dev

fix getContainedComponents in IE 11
Evan You 11 years ago
parent
commit
c0139e5057
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/directives/if.js

+ 1 - 1
src/directives/if.js

@@ -90,7 +90,7 @@ module.exports = {
       var next
       var next
       while (next !== end) {
       while (next !== end) {
         next = cur.nextSibling
         next = cur.nextSibling
-        if (cur.contains(c.$el)) {
+        if (cur.contains && cur.contains(c.$el)) {
           return true
           return true
         }
         }
         cur = next
         cur = next