[Pkg-javascript-commits] [d3-tip.js] 140/277: only set directions once
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:24 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 8be8f4b8d9e8e233550724094e7cd8d579fbbce8
Author: Justin Palmer <justin at github.com>
Date: Wed Apr 24 12:08:11 2013 -0700
only set directions once
---
src/d3.tip.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/d3.tip.js b/src/d3.tip.js
index 6807e4a..e0c4b4b 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -27,8 +27,8 @@ d3.tip = function() {
var content = html.apply(this, arguments),
poffset = offset.apply(this, arguments),
dir = direction.apply(this, arguments),
- dirs = direction_callbacks.keys(),
nodel = d3.select(node), i = 0,
+ length = directions.length,
coords
nodel.html(content).style('display', 'block')
@@ -131,7 +131,9 @@ d3.tip = function() {
ne: direction_ne,
sw: direction_sw,
se: direction_se
- })
+ }),
+
+ directions = direction_callbacks.keys()
function direction_n() {
var bbox = get_screen_bbox()
--
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