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

Commit 87a7157

Browse files
committed
Fix updateCenter() so it correctly updates center values UNLESS the center event is disabled (See #1865).
1 parent 65cfba1 commit 87a7157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coffee/directives/api/map.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ angular.module('uiGmapgoogle-maps.directives.api')
141141
s.dragging = dragging if s.dragging?
142142

143143
updateCenter = (c = _gMap.center, s = scope) ->
144-
return if _.includes disabledEvents, 'center'
144+
unless _.includes disabledEvents, 'center'
145145
s.center.latitude = c.lat() if s.center.latitude isnt c.lat()
146146
s.center.longitude = c.lng() if s.center.longitude isnt c.lng()
147147

0 commit comments

Comments
 (0)