           row.append(td)
           table.append(row)
 
-        @mget('tooltip').add(rx, ry, table)
+        tooltip.add(rx, ry, table)
 
       return null
 


    initialize: (attrs, options) ->
      super(attrs, options)
      @set('tooltip', new Tooltip.Model())
      renderers = @get('plot').get('renderers')
      renderers.push(@get('tooltip'))
      @get('plot').set('renderers', renderers)

    defaults: () ->
      return _.extend({}, super(), {

      for r in @mget('renderers')
        sm = r.get('data_source').get('selection_manager')
        sm.inspect(@, @plot_view.renderers[r.id], geometry, {"geometry": geometry})
      return

    _update: (indices, tool, renderer, ds, {geometry}) ->

      tooltip = @mget('ttmodels')[renderer.model.id] ? null
      if not tooltip?
        return

      tooltip.clear()

      if indices.length == 0
        return
