docs: function hide() {
              // First things first: we don't show it anymore.
              scope.tt_isOpen = false;
  
              //if tooltip is going to be shown after delay, we must cancel this
              $timeout.cancel( popupTimeout );
  
              // 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.
              if ( scope.tt_animation ) {
                transitionTimeout = $timeout(function () {
                  tooltip.remove();
                }, 500);
              } else {
                tooltip.remove();
              }
            }