W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2012

UndoManager.item should probably return a sequence, not an IDL array object

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 20 Sep 2012 15:39:48 -0400
Message-ID: <505B7104.7020502@mit.edu>
To: public-webapps <public-webapps@w3.org>
Given that .item() returns a new object every time, I don't see the use 
cases for returning an IDL array object.  On the other hand, there are 
drawbacks (e.g. it's not an actual JS array, unlike sequence).  Are 
there any particular reasons this is returning an IDL array object?

If there _are_, then at the very least the spec needs to define what 
sort of IDL array object this is.  There are three different kinds...

-Boris
Received on Thursday, 20 September 2012 19:40:16 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:54 GMT