Crossover for Work Interview Question

What is the function of stopImmediatePropagation method?