Permalink
Browse files

Trying a delay

  • Loading branch information...
1 parent 10b7712 commit 7c9ce26482f2758ee1b5adba2b48509e80834072 @reinout reinout committed Apr 25, 2012
@@ -135,8 +135,11 @@ MeasuresMapView = Backbone.View.extend
initialize: ->
@static_url = $('#lizard-blockbox-graph').attr 'data-static-url'
- @measures()
- @rivers()
+ runDelayed = ->
+ @measures()
+ @rivers()
+ # Delay in the hope that this is long enough for 'map' to exist.
+ setTimeout(runDelayed, 500)
render: ->
@render_measure_IVM()

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 7c9ce26

Please sign in to comment.