kborchers/jquery-ui — comment on commit b66300724b4aeafd4327c519ebc36da1fb31ab74
File: ui/jquery.ui.menubar.js line 267
By gnarf37:

The fact that this is checking `event.target` before it knows if `event` exists makes the 'public' `next` method impossible to call without creating a fake event.