From b2f80f14f43329269d5969a31a224b97222cce65 Mon Sep 17 00:00:00 2001 From: AbstractVisions Date: Wed, 20 Jan 2016 20:11:43 +0300 Subject: [PATCH 1/2] Update circle-parent-model.coffee Add "coordinates" reference checking and object reference checking of "geoJSON" to $watchCollection for "ui-gmap-circle" directive --- .../directives/api/models/parent/circle-parent-model.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coffee/directives/api/models/parent/circle-parent-model.coffee b/src/coffee/directives/api/models/parent/circle-parent-model.coffee index 109fde37e..146b22161 100644 --- a/src/coffee/directives/api/models/parent/circle-parent-model.coffee +++ b/src/coffee/directives/api/models/parent/circle-parent-model.coffee @@ -26,7 +26,7 @@ angular.module('uiGmapgoogle-maps.directives.api.models.parent') @setMyOptions = (newVals, oldVals) => return if scope.settingFromDirective - unless _.isEqual newVals,oldVals + unless _.isEqual newVals,oldVals and newVals == oldVals and (newVals? and oldVals? and newVals.coordinates == oldVals.coordinates) gObject.setOptions @buildOpts GmapUtil.getCoords(scope.center), scope.radius @props = @props.concat [ From e0a12196de34770b3b76448f3e7e3310d167fd41 Mon Sep 17 00:00:00 2001 From: AbstractVisions Date: Fri, 22 Jan 2016 03:44:37 +0300 Subject: [PATCH 2/2] Update circle-parent-model.coffee --- .../directives/api/models/parent/circle-parent-model.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/coffee/directives/api/models/parent/circle-parent-model.coffee b/src/coffee/directives/api/models/parent/circle-parent-model.coffee index 146b22161..0fe51ea05 100644 --- a/src/coffee/directives/api/models/parent/circle-parent-model.coffee +++ b/src/coffee/directives/api/models/parent/circle-parent-model.coffee @@ -26,7 +26,9 @@ angular.module('uiGmapgoogle-maps.directives.api.models.parent') @setMyOptions = (newVals, oldVals) => return if scope.settingFromDirective - unless _.isEqual newVals,oldVals and newVals == oldVals and (newVals? and oldVals? and newVals.coordinates == oldVals.coordinates) + unless _.isEqual(newVals,oldVals) and + newVals == oldVals and + (if newVals? and oldVals? then newVals.coordinates == oldVals.coordinates else true) gObject.setOptions @buildOpts GmapUtil.getCoords(scope.center), scope.radius @props = @props.concat [