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



commit 28ab2d4d620d72e7cb08c0c9a91e2c5351c56d56
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.

 src/mapLocation.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/mapLocation.js b/src/mapLocation.js
index d9f2182..b60a646 100644
--- a/src/mapLocation.js
+++ b/src/mapLocation.js
@@ -32,6 +32,9 @@ 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 +47,11 @@ 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]