Hi

What is the point of using eval in file Json.js :

qx.Class.define("qx.test.data.store.Json",
....   
   
   setUp : function()
    {
      this.__store = new qx.data.store.Json();
      this.__data = eval("({s: 'String', n: 12, b: true})");  // *<--*
      this.__propertyNames = ["s", "n", "b"];            

      this.url = qx.util.ResourceManager.getInstance().
        toUri("qx/test/primitive.json");
    },

There is code:
   this.__data = eval("({s: 'String', n: 12, b: true})");
Why not ? :
    this.__data = {s: 'String', n: 12, b: true}; 
    
While in the next row we use literal assignement and not:
  this.__propertyNames = eval('(["s", "n", "b"])');  
    




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Use-of-eval-in-framework-tp7582238.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to