       @appendAs('div', view)
 
     appendAs: (type, view) ->
-      @$el = @parent.$el.find(@el)
+      @$el = @parent.$el
+      if @el
+        @$el = @parent.$el.find(@el)
       view.parent = @parent
       @views ?= []
       @views.push(view)


    render: () ->
      @onBeforeRender?()
      @detachPopovers()
      @_render()
      @onRender?()
      if @_rendered then @onDomRefresh?() else @_rendered = true

  settings = require('cs!settings')

  class Region
    constructor: (@el, @parent) ->

    show: (view) ->
      @empty()
