[gnome-maps] mapView: Remove unused arguments



commit 65051d76863c33f105c4728230f4d3712386032e
Author: Marcus Lundblad <ml update uu se>
Date:   Mon Nov 6 23:25:22 2017 +0100

    mapView: Remove unused arguments
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782861

 src/mapView.js |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index fd4f647..620bbcb 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -634,9 +634,14 @@ var MapView = new Lang.Class({
                 routeLayer.add_node(lastPoint);
             }
 
-            if (hasOutline)
-                leg.polyline.forEach(outlineRouteLayer.add_node.bind(outlineRouteLayer));
-            leg.polyline.forEach(routeLayer.add_node.bind(routeLayer));
+            if (hasOutline) {
+                leg.polyline.forEach((function (polyline) {
+                    outlineRouteLayer.add_node(polyline);
+                }));
+            }
+            leg.polyline.forEach((function (polyline) {
+                routeLayer.add_node(polyline);
+            }));
 
             /* like above, "stitch" the route segment with the next one if it's
              * a walking leg, and not the last one */


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