Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbieh committed Apr 22, 2014
1 parent 7166954 commit 21d6be9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ function noLocation(error) {
alert("No location info available. Error code: " + error.code);
}

$('#getPositionButton').bind('click', function() {
$('#getPositionButton').on('click', function() {
$.geolocation.get({win: alertMyPosition, fail: noLocation});
});

$('#watchPositionButton').bind('click', function() {
$('#watchPositionButton').on('click', function() {
// alertMyPosition is called each time the user's position changes
myPosition = $.geolocation.watch({win: alertMyPosition});
});

$('#stopButton').bind('click', function() {
$('#stopButton').on('click', function() {
$.geolocation.stop(myPosition);
});</pre>

Expand Down

0 comments on commit 21d6be9

Please sign in to comment.