       options
 
     enter: (obj) ->
-      self = if obj instanceof this.constructor then obj else $(obj.currentTarget).data('bs.' + @type)
+      self = if obj instanceof @constructor then obj else $(obj.currentTarget).data('bs.' + @type)
 
       if !self
         self = new @constructor(obj.currentTarget, @getDelegateOptions())


      self.timeout = setTimeout (-> self.hide() if self.hoverState == 'out') , self.options.delay.hide

  $.fn.tooltip = (options) ->
    @.each ->


  $.fn.tooltip.defaults =
    animation: true

      @enabled  = true
      @type     = type
      @$element = $(element)
      @options   = @getOptions(options)
      @$viewport  = @options.viewport and $(@options.viewport.selector or @options.viewport)

      for trigger in @options.trigger.split(' ')
        if trigger == 'click'
