Difference between onEventAdded and onEventCreated


I wonder what is the difference between the events: onEventAdded and onEventCreated?


onEventCreated called when new event just created by mouse action or addEventNow api call, normally you will have a lightbox form or a quick edit box after that. In that moment event not ready for saving yet. It is a good place to set default properties for new event.

onEventAdded called when user press save in lightbox for newly created event. In that moment event is ready for saving ( inserting ) in db.

Thank you!