DateRange component events

Thank you.

Now I have such problem, that if I change DateRange component endTime and startTime, sometimes my code behind DateRange component event handler runs two times.
I change endTime and startTime like this:

event.source.parent.getComponent('Date Range').endDate = newEndDate
event.source.parent.getComponent('Date Range').startDate = newStartDate

And it seems that event fires on every date change, first time on endDate change and second time on startDate change.
Is it possible to change endDate and startDate at once, at the same time?