Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Commit

Permalink
fix #47. remove old directional classes when running tip.show again
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Palmer committed Feb 24, 2014
1 parent 8a8fd0c commit add26c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit add26c7

Please sign in to comment.