             if typeof item is 'string'
                 item =
                     text: item
-                    
+
             super item, fn
-            

module.exports =
    
    class List extends floyd.gui.ViewContext
        
        ##
        ##
        ##
        configure: (config)->
            
            config = super new floyd.Config

                widget: ->
                    if @class
                        li class:@class, -> @text
                    else
                        li -> @text

                data:
                    items: []


                content: ->
                    ul()

            , config

            if config.browse

                config.children.push new floyd.Config

                    id: 'browse'
                    type: 'musiknetz.views.widgets.ListBrowser'

                    data:
                        selector: 'div.browse'

                , config.browse

            @_widget = floyd.tools.gui.ck config.widget

            return config


        start: (done)->

            super (err)=>
                return done(err) if err

