This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var GEO_LOCATION = { | |
| watchID: null, | |
| callback: null | |
| }; | |
| GEO_LOCATION.mySpot = function(position){ | |
| var lat = (position.coords) ? new String(position.coords.latitude) : position.x; | |
| var lon = (position.coords) ? new String(position.coords.longitude) : position.y; | |
| return GEO_LOCATION.callback(lat, lon); | |
| } |