       @emit 'viewAppended', @
     @
 
+  appendToSelector:(selector)->
+    $(selector).append @$()
+    @emit 'viewAppended', @
+
   prepend:(child, selector)->
     @$(selector).prepend child.$()
     if @parentIsInDom

    o.showOnlyWhenOverflowing or= no # this will check for horizontal overflow

    @on "viewAppended", =>
      # For this to work, the DOM element must have layout box information 
      # associated such as overflow, border-sizing, text-overflow 
      #
      #                                                          Arvid Feb 2013
    
      isOverflowing = @$(o.selector)[0]?.offsetWidth < @$(o.selector)[0]?.scrollWidth 

      if o.showOnlyWhenOverflowing and isOverflowing or not o.showOnlyWhenOverflowing
        @bindTooltipEvents o

  setDomId:(id)->
    @domElement.attr "id",id

  setDataId:()->
    @domElement.data "data-id",@getId()

