[gnome-maps/wip/fix-geoloc: 6/11] Add documentation



commit 42fa27b28b3c26e2ac065e0470ed0a4ab5584436
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Wed Jul 10 19:16:07 2013 +0200

    Add documentation
    
    Document a few functions here and there.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704537

 src/mapLocation.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/mapLocation.js b/src/mapLocation.js
index 6a460bc..92f4180 100644
--- a/src/mapLocation.js
+++ b/src/mapLocation.js
@@ -32,6 +32,7 @@ const Utils = imports.utils;
 const Path = imports.path;
 const _ = imports.gettext.gettext;
 
+// A map location object with an added accuracy.
 const MapLocation = new Lang.Class({
     Name: 'MapLocation',
 
@@ -44,6 +45,9 @@ const MapLocation = new Lang.Class({
         this.accuracy = geocodeLocation.accuracy;
     },
 
+    // Go to this location from the current location on the map, optionally
+    // with an animation
+    // TODO: break this out somewhere, this is useful in other cases as well.
     goTo: function(animate) {
         log("Going to " + this.description);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]