Cordova angularjs window.alert() calls on iOS

I have two consecutive calls to window.alert() in my angularjs code,
running on iOS through Cordova.
It’s doing the most peculiar thing, running the second, then going back
to the previous one. Does anyone have any clue about this behavior?

Source: New feed
Source Url Cordova angularjs window.alert() calls on iOS