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

      _.each _.keys(regions), (region) =>
        @[region] = new Region(regions[region], $context)

  return class BaseView extends Backbone.View
    initialize: () ->
      @_popovers = []
      @regions = new Regions(@regions, @)

    _renderDom: (data) ->


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