close document by clicking tab with middle mouse button

I may be deficient in my understanding of switch/case here, but does this mean that ONMOUSEUP will fall through to ONLOSECAPTURE whenever it's not BUTTON_MIDDLE ? Is that okay?