From 5a4e1b7e97faaaa83a871b568788eebb59a5f14d Mon Sep 17 00:00:00 2001 From: KuroGuo <413298956@qq.com> Date: Thu, 4 Jun 2015 23:28:16 +0800 Subject: [PATCH] fix getContainedComponents in IE 11 --- src/directives/if.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directives/if.js b/src/directives/if.js index 6a3714c5bf6..d6d1e9ad57a 100644 --- a/src/directives/if.js +++ b/src/directives/if.js @@ -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)) { return true } cur = next