[gnome-maps/wip/routing2: 7/9] fixup routeServiec



commit cacc075ba77a41aa5f9a0f5d2c8a1b8149f80930
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Sat May 3 21:16:19 2014 +0200

    fixup routeServiec

 src/routeService.js |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/routeService.js b/src/routeService.js
index c41d17b..d6b8e43 100644
--- a/src/routeService.js
+++ b/src/routeService.js
@@ -53,10 +53,10 @@ const GraphHopper = new Lang.Class({
         this._query   = new RouteQuery.RouteQuery();
 
         this._query.connect('change', (function() {
-            if(this._query.from && this._query.to)
+            if(this._query.from && this._query.to) {
                 this.fetchRoute([this._query.from, this._query.to],
                                 this._query.transportation);
-            else
+            } else
                 this._route.reset();
         }).bind(this));
 
@@ -104,11 +104,11 @@ const GraphHopper = new Lang.Class({
         bbox.extend(route.bbox[1], route.bbox[0]);
         bbox.extend(route.bbox[3], route.bbox[2]);
 
-        return { path:        path,
-                 turnPoints:  turnPoints,
-                 distance:    route.distance,
-                 time:        route.time,
-                 bbox:        bbox };
+        return { path:       path,
+                 turnPoints: turnPoints,
+                 distance:   route.distance,
+                 time:       route.time,
+                 bbox:       bbox };
     },
 
     _createTurnPoints: function(path, instructions) {


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