Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Trying a delay
Browse files Browse the repository at this point in the history
  • Loading branch information
reinout committed Apr 25, 2012
1 parent 10b7712 commit 7c9ce26
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions lizard_blockbox/static/lizard_blockbox/blockbox.coffee
Expand Up @@ -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()
Expand Down
8 changes: 6 additions & 2 deletions lizard_blockbox/static/lizard_blockbox/blockbox.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c9ce26

Please sign in to comment.