onAfterTaskUpdate Being Called mulitple times

Hi,

I am whenever i am trying to update a task its onAfterTaskUpdate is being called multiple times
Here is the snippet can you please point out my problem here.

docs.dhtmlx.com/gantt/snippet/efdf5183

Hello,
there is several calls of updateTask in your code which will be executed one after another, probably this is the reason
screencast.com/t/qFkCcCCG6