8000 Merge pull request #893 from KuroGuo/dev · Snoopbobb/vue@c0139e5 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit c0139e5

Browse files
committed
Merge pull request vuejs#893 from KuroGuo/dev
fix getContainedComponents in IE 11
2 parents 400f8bf + 5a4e1b7 commit c0139e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/if.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ module.exports = {
9090
var next
9191
while (next !== end) {
9292
next = cur.nextSibling
93-
if (cur.contains(c.$el)) {
93+
if (cur.contains && cur.contains(c.$el)) {
9494
return true
9595
}
9696
cur = next

0 commit comments

Comments
 (0)
0