Skip to content

Commit

Permalink
Merge pull request #19 from alexshalamov/fix_examples
Browse files Browse the repository at this point in the history
Align example with GS API spec changes
  • Loading branch information
Mikhail Pozdnyakov committed Jun 28, 2017
2 parents 107f3b4 + eed0991 commit cacfb09
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 98 deletions.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Examples {#examples}
let sensor = new Accelerometer();
sensor.start();

sensor.onchange = () => {
sensor.onreading = () => {
console.log("Acceleration along X-axis: " + sensor.x);
console.log("Acceleration along Y-axis: " + sensor.y);
console.log("Acceleration along Z-axis: " + sensor.z);
Expand Down

0 comments on commit cacfb09

Please sign in to comment.