Skip to content

Commit 396660a

Browse files
committed
Fixes event removal
1 parent 5e395d3 commit 396660a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/coffee/utils/MapEvents.coffee

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ angular.module("google-maps")
1515
remove.push addEvent(target, key, _handler)
1616

1717
->
18-
angular.forEach remove, (fn) ->
19-
fn() if _.isFunction(fn)
20-
fn.e() if fn.e isnt null and _.isFunction(fn.e)
18+
angular.forEach remove, (listener) ->
19+
google.maps.event.removeListener listener
2120

2221
remove = null
2322
addEvents
24-
]
23+
]

0 commit comments

Comments
 (0)