src/core.js
function apiToggle(element, event) {
		if (session.activeHover && session.activeHover.is(element)) {
			// tooltip for element is active, so close it
			$.powerTip.hide(element, !isMouseEvent(event));
		} else {
			// tooltip for element is not active, so open it
			$.powerTip.show(element, event);
		}
		return element;
	}
function apiToggle(element, event) {
		if (session.activeHover && session.activeHover.is(element)) {
			// tooltip for element is active, so close it
			$.powerTip.hide(element, !isMouseEvent(event));
		} else {
			// tooltip for element is not active, so open it
			$.powerTip.show(element, event);
		}
		return element;
	}
function apiToggle ( element , event ) { if ( session . activeHover && session . activeHover . is ( element ) ) { // tooltip for element is active, so close it $ . powerTip . hide ( element , ! isMouseEvent ( event ) ) ; } else { // tooltip for element is not active, so open it $ . powerTip . show ( element , event ) ; } return element ; }
Toggles the tooltip for the specified element. This will open a closed
tooltip, or close an open tooltip.
@param {jQuery|Element} element The element with the tooltip that
should be toggled.
@param {jQuery.Event=} event jQuery event for hover intent and mouse
tracking (optional).
@return {jQuery|Element} The original jQuery object or DOM Element.
Toggles the tooltip for the specified element . This will open a closed tooltip or close an open tooltip .