[gnome-maps] mapView: Remove extra arguments to function



commit 95975e36691802e28fc9a33d2e967c1c125666fd
Author: Marcus Lundblad <ml update uu se>
Date:   Sun Nov 12 21:42:10 2017 +0100

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

 src/mapView.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 620bbcb..2249889 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -574,7 +574,9 @@ var MapView = new Lang.Class({
 
         routeLayer = this._createRouteLayer(false, TURN_BY_TURN_ROUTE_COLOR,
                                             ROUTE_LINE_WIDTH);
-        route.path.forEach(routeLayer.add_node.bind(routeLayer));
+        route.path.forEach((function (polyline) {
+            routeLayer.add_node(polyline);
+        }).bind(this));
         this.routingOpen = true;
 
         this._ensureInstructionLayerAboveRouteLayers();


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