From 82eeda5b38f64665e468d1c24aa755afeb1fa50c Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 16 Aug 2016 22:14:51 -0400 Subject: [PATCH] better naming --- public/js/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index b131c9d..d2274f9 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -120,10 +120,10 @@ var attachDragHandlers = function(){ }) .on('drag', function(d){ //change position of cirlce while draging - var dx = d3.event.x; - var dy = d3.event.y; - d3.select(this).attr('cx',dx); - d3.select(this).attr('cy',dy); + var x = d3.event.x; + var y = d3.event.y; + d3.select(this).attr('cx',x); + d3.select(this).attr('cy',y); }); //attach drag behavior to circle elements d3.selectAll('circle').call(drag);