[Pkg-javascript-commits] [d3-tip.js] 141/277: optimize loop for unsetting previous directional classes
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 49c7941e9c37ba66445eefd3797c1c1a4dfdb8db
Author: Justin Palmer <justin at github.com>
Date: Wed Apr 24 12:09:03 2013 -0700
optimize loop for unsetting previous directional classes
---
src/d3.tip.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/d3.tip.js b/src/d3.tip.js
index e0c4b4b..a8d5dd8 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -32,7 +32,7 @@ d3.tip = function() {
coords
nodel.html(content).style('display', 'block')
- for(i; i < dirs.length; i++) nodel.classed(dirs[i], false)
+ while(i--) nodel.classed(directions[i], false)
coords = direction_callbacks.get(dir).apply(this)
nodel.classed(dir, true).style({
top: (coords.top + poffset[0]) + 'px',
--
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