Skip to content

Commit 3cc12c5

Browse files
committed
Move spinner outside of $timeout
1 parent 778e72b commit 3cc12c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/scripts/mapctrl.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,10 @@ angular.module('taarifaWaterpointsApp')
208208
# FIXME: find a better solution than this "magic number" for timeout
209209
$timeout ->
210210
map.invalidateSize()
211-
modalSpinner.close()
212211
, 2000
213212

213+
modalSpinner.close()
214+
214215
return map
215216
)
216217

0 commit comments

Comments
 (0)