     if @parentIsInDom
       @emit 'viewAppended', @
     @
+
+  prependToSelector:(selector)->
+    $(selector).prepend @$()
+    @emit 'viewAppended', @
 
   setPartial:(partial,selector)->
     @$(selector).append partial

      @emit 'viewAppended', @
    @

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

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

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

