Commit 85e738ea authored by Jason Davies's avatar Jason Davies
Browse files

Rename for consistency.

parent 36b8a0b1
......@@ -1408,9 +1408,9 @@ d3 = function() {
}
function ended() {
if (d3.event.touches.length) {
var touches = d3.event.changedTouches;
for (var i = 0, n = touches.length; i < n; ++i) {
delete locations0[touches[i].identifier];
var changed = d3.event.changedTouches;
for (var i = 0, n = changed.length; i < n; ++i) {
delete locations0[changed[i].identifier];
}
relocate();
} else {
......
......@@ -262,9 +262,9 @@ d3.behavior.zoom = function() {
function ended() {
if (d3.event.touches.length) {
var touches = d3.event.changedTouches;
for (var i = 0, n = touches.length; i < n; ++i) {
delete locations0[touches[i].identifier];
var changed = d3.event.changedTouches;
for (var i = 0, n = changed.length; i < n; ++i) {
delete locations0[changed[i].identifier];
}
relocate(); // locations may have detached due to rotation
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment