blur

jQuery.caph.focus.controllerProvider.controller. blur

Blurs the given item, or the current focus item if not passed anything else. If the given item's depth is not equal to current depth, will not be blurred.

(static) blur(itemopt, originalEventopt) → {jQuery.caph.focus.controllerProvider.controller}

Parameters:
Name Type Attributes Description
item DOMElement | string <optional>

A DOM element to be blurred. If the string value is passed, it represents the name of the focusable. If not passed anything else, blurs the current focus item.

originalEvent Event <optional>

The original event. If you want to know about the original event in the handler function, pass it to second parameter.

Returns:
Type
jQuery.caph.focus.controllerProvider.controller
Example
function blurCurrentFocusItem() {
 	$.caph.focus.controllerProvider.getInstance().blur();
 }