I cant get component of object?

I cant get a object of window or another object, for example I have many window and each window have a dhtmlxlayout, when I attach the component, use win.attachLayout and this method return me the object dhtmlxLayout, but I must save the object if I have many windows, I must save many object. ¿There is some method that get some component of that object? or I must keep

There is not a public method to get the object of the layout that is attached to a window. So, you need to keep objects that attachLayout method returns.