Hi,

I want to be able to do something like that:

myModel.set(
{
         first:
         {
                name: "...",
                address: "123"
         },
         second:
         {
                dunno: "1234",
                foo: "bar"
         }
});

but the set method can't handle recursive data. Shouldn't it be able to do
so?

I need to set the data separately right now:

myModel.getFirst().set({name: "...", address: "123"});
myModel.getSecond().set({dunno: "1234", foo: "bar"});


I take a look at Object.set method but how can I know that the passed data
is a Map? I mean, not a array, string, int or something else. A map. Because
after knowing that it's easy to patch it.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to