[Pkg-javascript-commits] [d3-tip.js] 152/277: scrollLeft shouldn't be a global

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

bhuvan-guest pushed a commit to branch master
in repository d3-tip.js.

commit 6ec781cff37e71c5618426d9fbf06b1b5dc3d2e2
Author: Justin Palmer <justin at github.com>
Date:   Tue May 28 16:39:47 2013 -0700

    scrollLeft shouldn't be a global
---
 src/d3.tip.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/d3.tip.js b/src/d3.tip.js
index 1244d13..e19072a 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -237,11 +237,11 @@ d3.tip = function() {
         height     = tbbox.height,
         x          = tbbox.x,
         y          = tbbox.y,
-        scrollTop = document.body.scrollTop
+        scrollTop  = document.body.scrollTop,
         scrollLeft = document.body.scrollLeft
 
     if(document.documentElement && document.documentElement.scrollTop) {
-      scrollTop = document.documentElement.scrollTop
+      scrollTop  = document.documentElement.scrollTop
       scrollLeft = document.documentElement.scrollLeft
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/d3-tip.js.git



More information about the Pkg-javascript-commits mailing list