Do not use $timeout in event handler