       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())

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

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

      $.fn.tooltip.defaults

    getOptions: (options) ->
      options = $.extend({}, @getDefault(), @$element.data(), options)
      options.delay = show: options.delay, hide: options.delay if options.delay and typeof options.delay == 'number'
      options

