[Pkg-javascript-commits] [d3-tip.js] 227/277: fix #47. remove old directional classes when running tip.show again

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:33 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 add26c79678ae1fe031eb62cfd69760f19b5f28f
Author: Justin Palmer <justin at github.com>
Date:   Mon Feb 24 08:22:16 2014 -0800

    fix #47.  remove old directional classes when running tip.show again
---
 index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index c60ca6e..4e14523 100644
--- a/index.js
+++ b/index.js
@@ -31,7 +31,8 @@ d3.tip = function() {
     var content = html.apply(this, args),
         poffset = offset.apply(this, args),
         dir     = direction.apply(this, args),
-        nodel   = d3.select(node), i = 0,
+        nodel   = d3.select(node),
+        i       = directions.length,
         coords
 
     nodel.html(content)

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