Skip to content

Commit

Permalink
Accelerometer plugin updated
Browse files Browse the repository at this point in the history
  • Loading branch information
vakrilov committed Feb 1, 2016
1 parent 775fbf9 commit fa16a3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/main-page.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/main-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function pageLoaded(args) {

setTimeout(function() {
try {
accService.startAccelometerUpdates(gravityUpdate);
accService.startAccelerometerUpdates(gravityUpdate);
}
catch (ex) {
alert(ex.message)
Expand Down Expand Up @@ -127,7 +127,7 @@ function win(world){
if(!gameEnded){
gameEnded = true;
world.pause();
accService.stopAccelometerUpdates();
accService.stopAccelerometerUpdates();
page.getViewById("win").visibility = "visible";
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
},
"dependencies": {
"nativescript-accelerometer": "^0.2.3",
"nativescript-accelerometer": "^0.3.1",
"nativescript-physics-js": "^1.0.5",
"tns-core-modules": "1.5.1"
},
Expand Down

0 comments on commit fa16a3b

Please sign in to comment.