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 );
      },this);
      return resultMap;

but this didn't work and there must be an easier way of doing this.

Thanks,

Christian 
-- 
View this message in context: 
http://www.nabble.com/Convert-qx.core.Object-to-map-tp24867643p24867643.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to