         @scrollTo1()
         @scrollTo2()
 
-    category_selection: (level, selected, idx) ->
-        @props.actions.set_selected_category(level, selected, idx)
+    category_selection: (level, idx) ->
+        @props.actions.set_selected_category(level, idx)
 
     category_list: (level) ->
         cat  = @props["cat#{level}"]

            @init_data(DATA)
    data_lang: () ->
        @get('data').get(@get('lang'))
    select_lang: (lang) ->
        @reset()
        catlist0 = @get('data').get(lang).keySeq().toArray().sort(@cat_sort)
        @set
            lang     : lang
            catlist0 : catlist0
        if catlist0.length == 1
            @set_selected_category(0, catlist0[0], 0)
    search: (search_str) ->
        @reset()
        if not search_str? or search_str.length == 0

        # this is the essential task of the wizard:
        # call the callback with the selected code snippet
        cb
            code  : @get('code')
            lang  : @get('lang')
            descr : @get('description')
    load_data: () ->
        if not DATA?
            require.ensure [], =>
