JavaScript cleanup to pass jsHint

I did my best to clean up the JavaScript so it would pass through jsHint more cleanly.  There still are issues but there are a lot fewer now.  This helped to make the JS code more consistent.
This commit is contained in:
macdonst
2011-05-21 01:50:20 +08:00
parent 6c3eefe6f9
commit 1d79b6617b
17 changed files with 477 additions and 477 deletions
+4 -4
View File
@@ -3,7 +3,7 @@
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2005-2010, Nitobi Software Inc.
* Copyright (c) 2010, IBM Corporation
* Copyright (c) 2010-2011, IBM Corporation
*/
if (!PhoneGap.hasResource("geolocation")) {
@@ -13,7 +13,7 @@ PhoneGap.addResource("geolocation");
* This class provides access to device GPS data.
* @constructor
*/
Geolocation = function() {
var Geolocation = function() {
// The last known GPS position.
this.lastPosition = null;
@@ -29,7 +29,7 @@ Geolocation = function() {
* @param code
* @param message
*/
PositionError = function(code, message) {
var PositionError = function(code, message) {
this.code = code;
this.message = message;
};
@@ -195,4 +195,4 @@ PhoneGap.addConstructor(function() {
Geolocation.usingPhoneGap = true;
}
});
};
}