Troubles with creating a new toolbar type

Hi to all.
I am newbie in dhx. So i started from viewing samples and reading docs.
But when i try to create a new toolbar type i had error

"TypeError: Cannot set property 'name' of undefined".

So by steps what i do.

  1. I take BookShop sample http://dhtmlx.com/touch/samples/apps/bookshop/index.html
    (all works ok).
  2. I put a piece of code dhx.Type(dhx.ui.toolbar, { name:"TransparentBar" css:"dhx_transparentbar", template:dhx.Template("#value#"), vertical:true, width:210, templateStart:dhx.Template("<div dhx_l_id='#id#' class='dhx_list_item dhx_list_{common.css}_item{obj.$selected?_selected:}' style='width:{common.width}px; height:{common.height}px; padding:{common.padding}px; margin:{common.margin}px; overflow:hidden;'>"), templateEnd:dhx.Template("</div>") }); (took from http://docs.dhtmlx.com/touch/doku.php?id=how_to_create_your_own_toolbar_type) in config.js (config.js there is in BookShop sample)
  3. Nothing do more. And after what i get that error.

What I do wrong? And how do this right?

P.S. when i try to create new other type (pagelist, for example) all works ok
P.P.S sorry for my English :unamused:

Sorry, I made mistake in previous post.
Instead of “config.js” I mean “type.js”

You have missed comma

In your code

dhx.Type(dhx.ui.toolbar, { name:"TransparentBar" css:"dhx_transparentbar",

but must be

dhx.Type(dhx.ui.toolbar, { name:"TransparentBar", css:"dhx_transparentbar",

Thank you for your reply, Stanislav.
But missing comma don’t have any profit in this situation. I put comma into my source, but problem don’t be resolved.
My search in touch source bring some results.
Script falls on calling dhx.Type method.
Specifically, on

if (!obj.types){
        obj.types = { "default" : obj.type };
	obj.type.name = "default";
}

I think it is happened because
dhx.ui.toolbar haven’t “type” property.
You can see it in touch_debug.js source, just find

dhx.protoUI({ name:"toolbar", .........

Anybody sometime tried to create a new toolbar type?