         @balloon.show($(e.target).offset().top, e.pageX, e.show_fast)
 
     @blur (e) =>
-      clearTimeout(@timeout)
+      clearTimeout(@balloon_timeout)
 
       unless @balloon.loading()
         @stopHighlighting()


class Factlink.Fact
  # If you want to support more events add them to this variable:
  _events: ["focus", "blur", "click", "update"]

  constructor: (id, elems) ->
    # Internal object which will hold all bound event handlers
    @_bound_events = {}


        hideBalloon = =>
          @balloon.hide()

        @balloon_timeout = setTimeout hideBalloon, 300

  click: ->
    @balloon.startLoading()

    Factlink.showInfo @id, =>
      @balloon.stopLoading()

  destroy: ->
    for el in @elements
