2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-18 12:39:41 +03:00

Merge pull request #14573 from twbs/indom-check-cross-doc

Make inDom check of tooltip cross document compatible
This commit is contained in:
Heinrich Fenkart
2014-09-09 03:14:12 +02:00
+1 -1
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