diff options
| author | Chris Rebert <[email protected]> | 2014-08-04 10:04:00 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-08-17 16:08:49 -0700 |
| commit | ea0e1606dc8f6a351c850a3e51889872c0f07c31 (patch) | |
| tree | aeee826d9880c0787617aa087167ce2b5628207f | |
| parent | e7d5905f38f5bd4c10425733e7b78941550a9cf2 (diff) | |
| download | bootstrap-ea0e1606dc8f6a351c850a3e51889872c0f07c31.tar.xz bootstrap-ea0e1606dc8f6a351c850a3e51889872c0f07c31.zip | |
Assume Element.getBoundingClientRect() exists; Fixes #14093
[skip validator]
| -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 0758b07ee..e730db6e9 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -323,7 +323,7 @@ var isBody = el.tagName == 'BODY' var isSvg = window.SVGElement && el instanceof window.SVGElement - var elRect = el.getBoundingClientRect ? el.getBoundingClientRect() : null + var elRect = el.getBoundingClientRect() var elOffset = isBody ? { top: 0, left: 0 } : $element.offset() var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() } var outerDims = isSvg ? {} : { |
