Skip to content

Commit e0a1219

Browse files
Update circle-parent-model.coffee
1 parent b2f80f1 commit e0a1219

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

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

2727
@setMyOptions = (newVals, oldVals) =>
2828
return if scope.settingFromDirective
29-
unless _.isEqual newVals,oldVals and newVals == oldVals and (newVals? and oldVals? and newVals.coordinates == oldVals.coordinates)
29+
unless _.isEqual(newVals,oldVals) and
30+
newVals == oldVals and
31+
(if newVals? and oldVals? then newVals.coordinates == oldVals.coordinates else true)
3032
gObject.setOptions @buildOpts GmapUtil.getCoords(scope.center), scope.radius
3133

3234
@props = @props.concat [

0 commit comments

Comments
 (0)