function hide() {
              if (!ttScope) {
                return;
              }

              //if tooltip is going to be shown after delay, we must cancel this
              if (showTimeout) {
                $timeout.cancel(showTimeout);
                showTimeout = null;
              }

              if (positionTimeout) {
                $timeout.cancel(positionTimeout);
                positionTimeout = null;
              }

              // First things first: we don't show it anymore.
              ttScope.$evalAsync(function() {
                ttScope.isOpen = false;
                assignIsOpen(false);
                // And now we remove it from the DOM. However, if we have animation, we
                // need to wait for it to expire beforehand.
                // FIXME: this is a placeholder for a port of the transitions library.
                // The fade transition in TWBS is 150ms.
                if (ttScope.animation) {
                  if (!transitionTimeout) {
                    transitionTimeout = $timeout(removeTooltip, 150, false);
                  }
                } else {
                  removeTooltip();
                }
              });
            }
// Hide the tooltip popup element.
Hide the tooltip popup element.
Hide the tooltip popup element .
function hide() {
              if (!ttScope) {
                return;
              }
              if (showTimeout) {
                $timeout.cancel(showTimeout);
                showTimeout = null;
              }
              if (positionTimeout) {
                $timeout.cancel(positionTimeout);
                positionTimeout = null;
              }
              ttScope.$evalAsync(function() {
                ttScope.isOpen = false;
                assignIsOpen(false);
                if (ttScope.animation) {
                  if (!transitionTimeout) {
                    transitionTimeout = $timeout(removeTooltip, 150, false);
                  }
                } else {
                  removeTooltip();
                }
              });
            }
function hide ( ) { if ( ! ttScope ) { return ; } if ( showTimeout ) { $timeout . cancel ( showTimeout ) ; showTimeout = null ; } if ( positionTimeout ) { $timeout . cancel ( positionTimeout ) ; positionTimeout = null ; } ttScope . $evalAsync ( function ( ) { ttScope . isOpen = false ; assignIsOpen ( false ) ; if ( ttScope . animation ) { if ( ! transitionTimeout ) { transitionTimeout = $timeout ( removeTooltip , 150 , false ) ; } } else { removeTooltip ( ) ; } } ) ; }
Hide the tooltip popup element.
Hide the tooltip popup element .
//if tooltip is going to be shown after delay, we must cancel this // First things first: we don't show it anymore. // And now we remove it from the DOM. However, if we have animation, we // need to wait for it to expire beforehand. // FIXME: this is a placeholder for a port of the transitions library. // The fade transition in TWBS is 150ms.