A simple example showing how to detect a double tap with d3.js, and an accompanying method for reusability.