         text = value
 
         unless enabled
-          trigger = attrs.macTooltipTrigger or "hover"
+          trigger = attrs.trigger or "hover"
           unless trigger in ["hover", "click"]
             return console.error "Invalid trigger"
 

@description
Tooltip directive

@param {String} mac-tooltip Text to show in tooltip
@param {String} mac-tooltip-direction Direction of tooltip
@param {String} mac-tooltip-trigger How tooltip is triggered
@param {Boolean} mac-tooltip-inside Should the tooltip be appended inside element
###

angular.module("Mac").directive "macTooltip", ->

    enabled = false

    showTip = (event) ->
      inside    = attrs.inside?
      direction = attrs.direction or "top"
      tip       = if inside then element else $(document.body)
      tooltip   = $("""<div class="tooltip #{direction}"><div class="tooltip-message">#{text}</div></div>""")
      tip.append tooltip
