Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maker: Accelerometer methods return array if passed no args #19155

Merged
merged 1 commit into from Nov 16, 2017

Conversation

islemaster
Copy link
Contributor

As requested by the ed team, getAcceleration and getOrientation now return an array of axis-values [x, y, z] if passed no arguments. This doesn't break any existing API contract because behavior when no arguments were passed was previously undefined for these functions (specifically, they would probably return undefined).

As requested by the ed team, `getAcceleration` and `getOrientation` now return an array of axis-values `[x, y, z]` if passed no arguments.  This doesn't break any existing API contract because behavior when no arguments were passed was previously undefined for these functions (specifically, they would probably return `undefined`).
@islemaster islemaster merged commit 2c51fd8 into staging Nov 16, 2017
@islemaster islemaster deleted the maker-accelerometer-return-array branch November 16, 2017 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants