I set up an example here: http://jsfiddle.net/stj3xogu/
I'm trying to clear the events on my calendar using a button, and it works just fine if I click the button ONCE, and then proceed to add new events. But if I click on the button twice or multiple times in a row, I can't add new events.
I've been trying to debug this for hours and nothing seems to work. I also tried using "$scope.dp.events.list = " instead of "$scope.events", but that didn't work either.
Is there a better way to clear all events that would allow me to use the scheduler again?