-{Disposable} = require 'atom'
-
 Popover = require './popover'
 
 module.exports =
 
-class AttachedPopover extends Disposable
+class AttachedPopover extends Popover
     ###
         NOTE: The reason we do not use Atom's native tooltip is because it is attached to an element, which caused
         strange problems such as tickets #107 and #72. This implementation uses the same CSS classes and transitions but
         handles the displaying manually as we don't want to attach/detach, we only want to temporarily display a popover
         on mouseover.
     ###
-    popover: null
     timeoutId: null
     elementToAttachTo: null
 

            clearTimeout(@timeoutId)
            @timeoutId = null

        @popover.dispose()

    ###*
     * sets the text to display.
     *
     * @param {string} text
    ###
    setText: (text) ->
        @popover.setText(text)

    ###*
     * Shows the popover with the specified text.

        @timeoutId = setTimeout(() =>
            @show(text, fadeInTime)
        , delay)
