@@ -201,7 +201,7 @@ <h1 class="title">
201201/* global document */
202202(function() {
203203 'use strict';
204- var NgMap, $timeout, $log, NavigatorGeolocation;
204+ var NgMap, $timeout, NavigatorGeolocation;
205205 var getDirectionsRenderer = function(options, events) {
206206 if (options.panel) {
207207 options.panel = document.getElementById(options.panel) ||
@@ -258,11 +258,10 @@ <h1 class="title">
258258 }
259259 };
260260 var directions = function(
261- Attr2MapOptions, _$timeout_, _$log_, _NavigatorGeolocation_, _NgMap_) {
261+ Attr2MapOptions, _$timeout_, _NavigatorGeolocation_, _NgMap_) {
262262 var parser = Attr2MapOptions;
263263 NgMap = _NgMap_;
264264 $timeout = _$timeout_;
265- $log = _$log_;
266265 NavigatorGeolocation = _NavigatorGeolocation_;
267266 var linkFunc = function(scope, element, attrs, mapController) {
268267 mapController = mapController[0]||mapController[1];
@@ -280,12 +279,12 @@ <h1 class="title">
280279 $timeout(function(){
281280 var panel =
282281 document.getElementById(val) || document.querySelector(val);
283- $log.debug ('setting ', attrName, 'with value', panel);
282+ console.log ('setting ', attrName, 'with value', panel);
284283 panel && renderer.setPanel(panel);
285284 });
286285 } else if (options[attrName] !== val) { //apply only if changed
287286 var optionValue = parser.toOptionValue(val, {key: attrName});
288- $log.debug ('setting ', attrName, 'with value', optionValue);
287+ console.log ('setting ', attrName, 'with value', optionValue);
289288 options[attrName] = optionValue;
290289 updateRoute(renderer, options);
291290 }
@@ -306,7 +305,7 @@ <h1 class="title">
306305 };
307306 }; // var directions
308307 directions.$inject =
309- ['Attr2MapOptions', '$timeout', '$log', ' NavigatorGeolocation', 'NgMap'];
308+ ['Attr2MapOptions', '$timeout', 'NavigatorGeolocation', 'NgMap'];
310309 angular.module('ngMap').directive('directions', directions);
311310})();
312311</ code > </ pre >
0 commit comments