diff options
author | Heinrich Fenkart <hnrch02@gmail.com> | 2014-07-09 02:29:38 +0400 |
---|---|---|
committer | Heinrich Fenkart <hnrch02@gmail.com> | 2014-07-09 02:42:02 +0400 |
commit | 0268b41c4f93e8f85c44a9ee2c8177c076c61ede (patch) | |
tree | e897c2c2a19d561d8151ce25e56769456ad85a93 /js/tooltip.js | |
parent | 05ddea314cb03832f0914939efc7ad6c1f7d8d9b (diff) |
Fix IE8 reporting type object for `getBoundingClientRect`
Diffstat (limited to 'js/tooltip.js')
-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 b305bc5ab5..0c3a79d0b9 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -321,7 +321,7 @@ var isBody = el.tagName == 'BODY' var isSvg = window.SVGElement && el instanceof window.SVGElement - var elRect = typeof el.getBoundingClientRect == 'function' ? el.getBoundingClientRect() : null + var elRect = el.getBoundingClientRect ? el.getBoundingClientRect() : null var elOffset = isBody ? { top: 0, left: 0 } : $element.offset() var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() } var outerDims = isSvg ? {} : { |