0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

Make inDom check of tooltip cross document compatible

Fixes #14483
This commit is contained in:
Heinrich Fenkart 2014-09-09 03:03:14 +02:00
parent e29c75041e
commit 759a95b0fe

View File

@ -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