Skip to content

Commit 7f54a3c

Browse files
author
Razvan Tudosa
committed
Update ng-map.js
It seems that without setting the third parameter to `true`, I get a weird crash in one of my projects, regarding the digest cycles. The error is: `[$rootScope:infdig] 10 $digest() iterations reached. Aborting!`
1 parent 9eb6867 commit 7f54a3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/scripts/ng-map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ angular.module('ngMap', []);
572572

573573
scope.$watch('[' + varsToWatch.join(',') + ']', function() {
574574
customMarker.setContent(orgHtml, scope);
575-
});
575+
}, true);
576576

577577
customMarker.setContent(element[0].innerHTML, scope);
578578
var classNames = element[0].firstElementChild.className;
@@ -3213,4 +3213,4 @@ angular.module('ngMap', []);
32133213

32143214

32153215
return 'ngMap';
3216-
}));
3216+
}));

0 commit comments

Comments
 (0)