       selector: 'a'
       mkTooltip: ($el, $target) ->
         $('<span class="testTooltip">This is a <a href="#">Link!</a></span>')
-          .appendTo($target)
+          .append($('<b>kill</b>').on('click', (e) ->
+            e.stopPropagation()
+            $target.remove()))
+          .insertAfter($target)
       rmTooltip: ($el, $target, $tooltip) ->
         $tooltip.remove()


  ttCounter = 0

  Backbone.Factlink.TooltipJQ = (cfg) ->
    uid = ttCounter++
    uidStr = 'tooltipUid-' + uid


      check = -> remove() if !(inTarget || inTooltip)
      remove = ->
        delete instances[instId]
        cfg.rmTooltip $el, $target, $tooltip
        $target.removeData(uidStr)
      $target.on 'remove', remove

      instances[instId] =
        remove: remove
        setTargetHover: (state) -> inTarget = state; check()

      $target.data(uidStr, instId)

