That turns out to have been a terrible idea, because 'click' is triggered during each step of drawing a polygon.