W3C home > Mailing lists > Public > public-device-apis-log@w3.org > December 2016

Re: [sensors] Don't allocate response objects to avoid triggering GC

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Wed, 07 Dec 2016 21:08:33 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-265573936-1481144912-sysbot+gh@w3.org>
> Application code can easily copy the values from the properties and 
store them for later, if they want to do so

@rwaldron, seems you're suggesting ES6/7 provides enough syntactic 
sugar to make a `gyro.snapshot()` method (placeholder name) redundant.
 We can always add it at a later stage if lots of people ask for it.

-- 
GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/153#issuecomment-265573936 using
 your GitHub account
Received on Wednesday, 7 December 2016 21:08:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:52 UTC