       @arrow().css(position, if delta then (50 * (1 - delta / dimension) + '%') else '')
 
     setContent: ->
-      $tip  = @tip()
-      title = @getTitle()
-
-      $tip.find('.tooltip-inner')[if @options.html then 'html' else 'text'](title)
-      $tip.removeClass('fade in top bottom left right')
+      @tip().find('.inner')[if @options.html then 'html' else 'text'](@getTitle()).removeClass('fade in top bottom left right')
 
     hide: ->
       that = @


    show: ->
      e = $.Event('show.bs.'+@type)
      if @hasContent() and @enabled
        @$element.trigger e

        inDom =  $.contains(document.documentElement, @$element[0])

    getCalculatedOffset: (placement, pos, actualWidth, actualHeight) ->
      return if placement == 'bottom' then { top: pos.top + pos.height,   left: pos.left + pos.width / 2 - actualWidth / 2  } else
             if placement == 'top'    then { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2  } else
             if placement == 'left'   then { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } else { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }

    getViewportAdjustedDelta: (placement, pos, actualWidth, actualHeight) ->
      delta = { top: 0, left: 0 }
