W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

[Bug 27986] New: Specify exact length of array returned by Navigator.getGamepads()

From: <bugzilla@jessica.w3.org>
Date: Mon, 09 Feb 2015 11:13:40 +0000
To: public-webapps@w3.org
Message-ID: <bug-27986-2927@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27986

            Bug ID: 27986
           Summary: Specify exact length of array returned by
                    Navigator.getGamepads()
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Gamepad
          Assignee: ted@mielczarek.org
          Reporter: philipj@opera.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org

https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#widl-Navigator-getGamepads-sequence-Gamepad

"The length of the array returned must be at least one more than the maximum
index value of the Gamepad objects returned in the array."

This offers more flexibility than seems useful, allowing e.g. an array of
length 100 to always be returned. Always returning an array of the minimum
length possible seems better.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 9 February 2015 11:13:41 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:25 UTC