Skip to content

Commit a1410f8

Browse files
committed
do not try to build paths from internal properties
1 parent 2a70a08 commit a1410f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/directives/paths.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ angular.module("leaflet-directive").directive('paths', function ($log, leafletDa
3838
leafletScope.$watch("paths", function (newPaths) {
3939
// Create the new paths
4040
for (var newName in newPaths) {
41+
if (newName.search('\\$') === 0) continue;
4142
if (newName.search("-") !== -1) {
4243
$log.error('[AngularJS - Leaflet] The path name "' + newName + '" is not valid. It must not include "-" and a number.');
4344
continue;

0 commit comments

Comments
 (0)