Skip to content

Commit 1cff9cd

Browse files
committed
marker-child-model, test click is function
1 parent 80a2c2b commit 1cff9cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coffee/directives/api/models/child/marker-child-model.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ angular.module('uiGmapgoogle-maps.directives.api.models.child')
219219
@scope.$apply()
220220
click: (marker, eventName, model, mousearg) =>
221221
click = @getProp 'click', @scope, @model
222-
if @doClick and click?
222+
if @doClick and angular.isFunction(click)
223223
@scope.$evalAsync click marker, eventName, @model, mousearg
224224

225225
MarkerChildModel

0 commit comments

Comments
 (0)