Hey,
> 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"])');
I have no idea what I thought back then. :) I don't think its necessary to use
the eval.
Regards,
Martin
------------------------------------------------------------------------------
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