@@ -201,7 +201,7 @@ <h1 class="title">
201
201
/* global document */
202
202
(function() {
203
203
'use strict';
204
- var NgMap, $timeout, $log, NavigatorGeolocation;
204
+ var NgMap, $timeout, NavigatorGeolocation;
205
205
var getDirectionsRenderer = function(options, events) {
206
206
if (options.panel) {
207
207
options.panel = document.getElementById(options.panel) ||
@@ -258,11 +258,10 @@ <h1 class="title">
258
258
}
259
259
};
260
260
var directions = function(
261
- Attr2MapOptions, _$timeout_, _$log_, _NavigatorGeolocation_, _NgMap_) {
261
+ Attr2MapOptions, _$timeout_, _NavigatorGeolocation_, _NgMap_) {
262
262
var parser = Attr2MapOptions;
263
263
NgMap = _NgMap_;
264
264
$timeout = _$timeout_;
265
- $log = _$log_;
266
265
NavigatorGeolocation = _NavigatorGeolocation_;
267
266
var linkFunc = function(scope, element, attrs, mapController) {
268
267
mapController = mapController[0]||mapController[1];
@@ -280,12 +279,12 @@ <h1 class="title">
280
279
$timeout(function(){
281
280
var panel =
282
281
document.getElementById(val) || document.querySelector(val);
283
- $log.debug ('setting ', attrName, 'with value', panel);
282
+ console.log ('setting ', attrName, 'with value', panel);
284
283
panel && renderer.setPanel(panel);
285
284
});
286
285
} else if (options[attrName] !== val) { //apply only if changed
287
286
var optionValue = parser.toOptionValue(val, {key: attrName});
288
- $log.debug ('setting ', attrName, 'with value', optionValue);
287
+ console.log ('setting ', attrName, 'with value', optionValue);
289
288
options[attrName] = optionValue;
290
289
updateRoute(renderer, options);
291
290
}
@@ -306,7 +305,7 @@ <h1 class="title">
306
305
};
307
306
}; // var directions
308
307
directions.$inject =
309
- ['Attr2MapOptions', '$timeout', '$log', ' NavigatorGeolocation', 'NgMap'];
308
+ ['Attr2MapOptions', '$timeout', 'NavigatorGeolocation', 'NgMap'];
310
309
angular.module('ngMap').directive('directions', directions);
311
310
})();
312
311
</ code > </ pre >
0 commit comments