[Pkg-javascript-commits] [d3-tip.js] 76/277: remove debug method from production code

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:18 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 1396637f7c975ead411a0a947e119db35440dcae
Author: Justin Palmer <justin at github.com>
Date:   Sun Apr 7 15:27:25 2013 -0700

    remove debug method from production code
---
 src/d3.tip.js | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/src/d3.tip.js b/src/d3.tip.js
index 0208e10..c6b1b11 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -206,21 +206,5 @@ d3.tip = function() {
     return bbox
   }
 
-  function debug(bbox) {
-    var points = [bbox.s, bbox.n, bbox.e, bbox.w, bbox.ne, bbox.nw, bbox.se, bbox.sw]
-    d3.select(document.body).selectAll('div.debug').data([]).exit().remove()
-    d3.select(document.body).selectAll('div.debug')
-      .data(points)
-    .enter().append('div')
-      .attr('class', 'debug')
-      .style('background-color', 'red')
-      .style('width', '4px')
-      .style('height', '4px')
-      .style('position', 'absolute')
-      .style('z-index', 99999)
-      .style('left', function(d) { return (d.x - (4 / 2)) + 'px' })
-      .style('top', function(d) { return (d.y - (4 / 2)) + 'px' })
-  }
-
   return tip;
 }

-- 
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