Fix global leak

This commit is contained in:
John Firebaugh
2013-01-29 15:03:13 -05:00
parent 9c158c99f1
commit 852973f61d

View File

@@ -32,7 +32,7 @@ d3.tail = function() {
function mousemove() {
if (text === false) return;
var xoffset = ((d3.event.x + tooltip_size[0] + xmargin) > selection_size[0]) ?
-tooltip_size[0] - xmargin : xoffset = xmargin;
-tooltip_size[0] - xmargin : xmargin;
container.style(transformProp, 'translate(' +
(~~d3.event.x + xoffset) + 'px,' +
~~d3.event.y + 'px)');