[Pkg-javascript-commits] [d3-tip.js] 69/277: :skull: some redundant vars
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:17 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 234a491cc44e9a2c2ab3fac102362fe8079349f8
Author: Justin Palmer <justin at github.com>
Date: Sun Apr 7 15:01:32 2013 -0700
:skull: some redundant vars
---
src/d3.tip.js | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/d3.tip.js b/src/d3.tip.js
index 771b25c..de58fb6 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -31,7 +31,8 @@ d3.svg.tip = function() {
tip.show = function(v) {
var content = text.apply(this, arguments),
- dir = direction.apply(this, arguments), coords
+ dir = direction.apply(this, arguments),
+ coords
node.innerHTML = content
node.style.display = 'block'
@@ -160,13 +161,13 @@ d3.svg.tip = function() {
function get_screen_bbox() {
var target = d3.event.target,
- bbox = {}, x, y, width, height,
+ bbox = {},
matrix = target.getScreenCTM(),
tbbox = target.getBBox(),
- width = tbbox.width,
+ width = tbbox.width,
height = tbbox.height,
- x = tbbox.x,
- y = tbbox.y
+ x = tbbox.x,
+ y = tbbox.y
point.x = x + document.body.scrollLeft
point.y = y + document.body.scrollTop
--
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