   _ = require('underscore')
   Backbone = require('backbone')
   settings = require('cs!settings')
+
+  cleanObject = (obj) ->
+    delete obj[key] for key of obj
 
   class Region
     constructor: (@el, @parent) ->

      @views ?= []
      @views.push(view)
      view.setElement($("<#{type}>").appendTo(@$el)).render()

    empty: () ->
      _.each @views, (view) ->


    close: () ->
      @empty()
      cleanObject()

  class Regions
    constructor: (regions = {}, $context) ->
