Commit 637fa991 authored by Jason Davies's avatar Jason Davies
Browse files

Tweak return value on touchend.

For consistency, always return undefined here.
parent ce12faee
......@@ -1413,7 +1413,7 @@ d3 = function() {
delete locations0[changed[i].identifier];
}
for (var identifier in locations0) {
return relocate();
return void relocate();
}
}
w.on(touchmove, null).on(touchend, null);
......
This diff is collapsed.
......@@ -271,7 +271,7 @@ d3.behavior.zoom = function() {
// If locations0 is not empty, then relocate and continue listening for
// touchmove and touchend.
for (var identifier in locations0) {
return relocate(); // locations may have detached due to rotation
return void relocate(); // locations may have detached due to rotation
}
}
// Otherwise, remove touchmove and touchend listeners.
......
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