// If it’s a `{focusin,focusout}` event (IE), `fromElement` and `toElement` should both be `null` or `undefined`;
// else, the page visibility hasn’t changed, but the user just clicked somewhere in the doc.
// In IE9, we need to check the `relatedTarget` property instead.
if (!/^focus./.test(type)||(toElement==undefined&&originalEvent.fromElement==undefined&&originalEvent.relatedTarget==undefined)){
originalEvent=event.originalEvent;
// If it’s a `{focusin,focusout}` event (IE), `fromElement` and `toElement` should both be `null` or `undefined`;
// else, the page visibility hasn’t changed, but the user just clicked somewhere in the doc.
// In IE9, we need to check the `relatedTarget` property instead.
if (!/^focus./.test(type)||originalEvent==undefined||(originalEvent.toElement==undefined&&originalEvent.fromElement==undefined&&originalEvent.relatedTarget==undefined)){