diff options
| author | Heinrich Fenkart <[email protected]> | 2014-09-09 03:14:12 +0200 |
|---|---|---|
| committer | Heinrich Fenkart <[email protected]> | 2014-09-09 03:14:12 +0200 |
| commit | 97027a2f6fad00c4d74fbef5aef6cccb179f8229 (patch) | |
| tree | 718af77803bab66dfeb26d6162be4e4398702b60 | |
| parent | e29c75041e2e7bf93273528b217e410045fa563d (diff) | |
| parent | 759a95b0fe57a07dad61786a920a860311261adb (diff) | |
| download | bootstrap-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.js | 2 |
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 |
