W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > June 2011

[Bug 12966] Why the { items: [item, ...] } when the object has only one property?

From: <bugzilla@jessica.w3.org>
Date: Thu, 16 Jun 2011 06:25:33 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QX61F-0000Ol-Gx@jessica.w3.org>

--- Comment #1 from Philip Jägenstedt <philipj@opera.com> 2011-06-16 06:25:33 UTC ---
Looking at the algorithm in isolation, there appears to be no good reason why
an object with a property 'items' holds the array of items, instead of just
serializing the array directly.

If the reason is for future extensibility or that the object-ness is somehow, a
note stating this would be appreciated.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 16 June 2011 06:25:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:52 UTC