 ui = CBGA.ui = {}
-
-getNextController = (context) ->
-
 
 class ui.Panel
   constructor: ({@name, @title, @owner, @visibility, @icon, @contains, @provides,



class ui.Controller extends EventEmitter
  # does nothing for now, but can be used for instanceof


class ui.PanelContainerController extends ui.Controller

    if @panel.contains.length
      new Blaze.Template =>
        owner ?= Template.currentData().owner
        # Why _.map instead of coffee's for?
        # Because then it has its own locals.
        _.map @panel.contains, (typeName) =>
          typeId = typeName.replace /\s/g, '-'
          type = @rules.getComponentType typeName
