From e822c9a21c2ea10e8885947e179a30385d665ce3 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Sat, 18 Apr 2015 15:12:18 +0200 Subject: [PATCH] use Routing.draw instead of Routing.Draw methods --- js/plugin/Routing.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/plugin/Routing.js b/js/plugin/Routing.js index e8561bf..021b534 100644 --- a/js/plugin/Routing.js +++ b/js/plugin/Routing.js @@ -99,7 +99,7 @@ BR.Routing = L.Routing.extend({ var drawEnabled = this._draw._enabled; var current = this._waypoints._first; - this._draw.disable(); + this.draw(false); if (current === null) { return; } this._removeMarkerEvents(current); @@ -115,7 +115,7 @@ BR.Routing = L.Routing.extend({ this._segments.clearLayers(); if (drawEnabled) { - this._draw.enable(); + this.draw(true); } }