Crossover for Work interview question

What is the function of stopImmediatePropagation method?