Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit b2f80f1

Browse files
Update circle-parent-model.coffee
Add "coordinates" reference checking and object reference checking of "geoJSON" to $watchCollection for "ui-gmap-circle" directive
1 parent aecba46 commit b2f80f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coffee/directives/api/models/parent/circle-parent-model.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ angular.module('uiGmapgoogle-maps.directives.api.models.parent')
2626

2727
@setMyOptions = (newVals, oldVals) =>
2828
return if scope.settingFromDirective
29-
unless _.isEqual newVals,oldVals
29+
unless _.isEqual newVals,oldVals and newVals == oldVals and (newVals? and oldVals? and newVals.coordinates == oldVals.coordinates)
3030
gObject.setOptions @buildOpts GmapUtil.getCoords(scope.center), scope.radius
3131

3232
@props = @props.concat [

0 commit comments

Comments
 (0)