Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/directives/if.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module.exports = {
var next
while (next !== end) {
next = cur.nextSibling
if (cur.contains(c.$el)) {
if (cur.contains && cur.contains(c.$el)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we still need to check the case where cur === c.$el, because in IE cur.contains is not present if cur is a textNode

return true
}
cur = next
Expand Down