View Full Version : Why JsUtil.eval("[{" + data + "}]") in JsObject?

Mike Chaliy
28 May 2009, 4:34 AM

Please explain why

JsUtil.eval("[{" + data + "}]")

inestead of

JsUtil.eval("[" + data + "]")

in the JsObject?

As for me second is more natural. If you trying to handle empty String in data, may be this is better to check if it empty first and the fall back to argument less contractor?