polysnapper
polysnapper copied to clipboard
Fix multiple click handlers being added
There's an issue when enabling/disabling the PolySnapper instance where the click event remains on disable and is triggered multiple times on click.
Adding a console.log to the onChange even clearly shows that this event is triggered multiple times on each click.