onBeforeEventDelete not working as expected?

according to the documentation of “onBeforeEventDelete”:
fires after the user clicks on the delete button (in the event bar or details window).

http://docs.dhtmlx.com/scheduler/api__scheduler_onbeforeeventdelete_event.html

I would expect to be called after clicking on delete button but before the confirm window to accept the deletion. In my case it’s being called after the confirmation. That’s the expected behavior or I’m doing something wrong?
I guess that’s the difference with “onConfirmedBeforeEventDelete” right?

Hi,
yes, this is an expected behavior. But there is another one difference with “onConfirmedBeforeEventDelete” event. The “onBeforeEventDelete” is called also when you use “scheduler.deleteEvent(id)” method, “onConfirmedBeforeEventDelete” only when user click the confiramation button.

thanks for the explanation!