aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-09-09 03:14:12 +0200
committerHeinrich Fenkart <[email protected]>2014-09-09 03:14:12 +0200
commit97027a2f6fad00c4d74fbef5aef6cccb179f8229 (patch)
tree718af77803bab66dfeb26d6162be4e4398702b60
parente29c75041e2e7bf93273528b217e410045fa563d (diff)
parent759a95b0fe57a07dad61786a920a860311261adb (diff)
downloadbootstrap-97027a2f6fad00c4d74fbef5aef6cccb179f8229.tar.xz
bootstrap-97027a2f6fad00c4d74fbef5aef6cccb179f8229.zip
Merge pull request #14573 from twbs/indom-check-cross-doc
Make inDom check of tooltip cross document compatible
-rw-r--r--js/tooltip.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tooltip.js b/js/tooltip.js
index a85d0bd7b..aa6202f50 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -152,7 +152,7 @@
if (this.hasContent() && this.enabled) {
this.$element.trigger(e)
- var inDom = $.contains(document.documentElement, this.$element[0])
+ var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0])
if (e.isDefaultPrevented() || !inDom) return
var that = this