 
   @connect: (cls) ->
     return unless typeof cls is 'function'
+
+    unless cls.className
+      throw new Error 'Widget.connect: lack of class property "className"'
+      return
+
     @::_connectedClasses.push(cls)
     @[cls.className] = cls if cls.className
 



class Plugin extends Module

  opts: {}




    instances = for cls in @_connectedClasses
      name = cls.className.charAt(0).toLowerCase() + cls.className.slice(1)
      @[name] = new cls(@)

    @_init()
