src/tooltip/tooltip.js
// Hide the tooltip popup element.
Hide the tooltip popup element.
Hide the tooltip popup element .
function hide() {
              $timeout.cancel( popupTimeout );
              popupTimeout = null;
              if ( !scope.isOpen ) {
                 return;
              }
              tooltipWidthWatcher.stop();
              scope.isOpen = false;
              if ( scope.animation ) {
                if (!transitionTimeout) {
                  transitionTimeout = $timeout(removeTooltip, 500);
                }
              } else {
                removeTooltip();
              }
            }
function hide ( ) { $timeout . cancel ( popupTimeout ) ; popupTimeout = null ; if ( ! scope . isOpen ) { return ; } tooltipWidthWatcher . stop ( ) ; scope . isOpen = false ; if ( scope . animation ) { if ( ! transitionTimeout ) { transitionTimeout = $timeout ( removeTooltip , 500 ) ; } } 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 // Don't show already shown or empty tooltips. // 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.