one panel is user updates GPS other is automaic via pollling

This commit is contained in:
Fred Grott
2009-01-18 16:00:53 -06:00
committed by fredgrott
parent 4b6dc97880
commit bcb7805006
2 changed files with 30 additions and 11 deletions
+11
View File
@@ -22,6 +22,17 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*
* At times we have to do polling in javascript, that is have function run at a specified interval
* repeated times. However, certain function polling will reduce battery life thus
* each of those features should have its own user defined interval
* that our js reads in and uses with of course conservative value used
* is consumer has not set one or the user of this library has not set one.
*
* Timeout only runs function twice not repeated times and thus we use
* setInterval. This should correct problems with
* both GPS and Accelerometer readings on Android
*/
try {
$ // Test if it is already used