   settings = require('cs!settings')
 
   class Region
-    constructor: (el, parent) ->
-      @parent = parent
-      @el = el
+    constructor: (@el, @parent) ->
 
     show: (view) ->
       @empty()

      @appendAs('div', view)

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

      _.each @regions, (region) ->
        region.close()

      @remove()
      @unbind()
      delete @[key] for key of @
      return @
