           disabled = value
 
       scope.$on "$destroy", ->
-        removeTip() if tooltip?
+        removeTip(0) if tooltip?
 ]


      opts = util.extendAttributes "macTooltip", defaults, attrs

      showTip = (event) ->
        return true if disabled or not text

        tip =
          if opts.inside then element else angular.element(document.body)
        tooltip = angular.element """<div class="tooltip #{opts.direction}"><div class="tooltip-message">#{text}</div></div>"""
        tip.append tooltip


                element.bind "click", toggle
              when "hover"
                element.bind "mouseenter", showTip
                element.bind "mouseleave click", -> removeTip()

            enabled = true

