From: Heinrich Fenkart Date: Tue, 9 Sep 2014 01:03:14 +0000 (+0200) Subject: Make inDom check of tooltip cross document compatible X-Git-Tag: v3.3.0~179^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=759a95b0fe57a07dad61786a920a860311261adb;p=thirdparty%2Fbootstrap.git Make inDom check of tooltip cross document compatible Fixes #14483 --- diff --git a/js/tooltip.js b/js/tooltip.js index a85d0bd7b1..aa6202f50b 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