Hello Christian,
you can just use the Serializer I recently added:
http://demo.qooxdoo.org/devel/apiviewer/#qx.util.Serializer
I can serialize your object to json and parse it back to a javascript
object.
If thats too much overhead, just take a look at the code and see how
you could implement
Sorry, the snippet was wrong:
qx.Class.getProperties( qx.Class.getByName( object.classname )
).forEach( function(property){
resultMap[property] = object.get( property );
},this);
panyasan wrote:
>
> Hello,
>
> how do I convert a qx.core.Object object with its properties t
Hello,
how do I convert a qx.core.Object object with its properties to a simple
JavaScript map? I was trying
var resultMap = {};
qx.Class.getProperties( qx.Class.getByName( object.classname )
).forEach( function(property){
resultMap[property] = this.getModel().get( property )