     enabled = false
 
     showTip = (event) ->
-      inside    = attrs.macTooltipInside?
-      direction = attrs.macTooltipDirection or "top"
+      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

@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", ->

        text = value

        unless enabled
          trigger = attrs.trigger or "hover"
          unless trigger in ["hover", "click"]
            return console.error "Invalid trigger"

