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

      @emit 'viewAppended', @
    @

  prepend:(child, selector)->
    @$(selector).prepend child.$()
    if @parentIsInDom

    if @parentIsInDom
      @emit 'viewAppended', @
    @

  prependToSelector:(selector)->
    $(selector).prepend @$()
    @emit 'viewAppended', @

  setPartial:(partial,selector)->
    @$(selector).append partial
