Don't app.init when document.body is null

pull/113/head
Thibaut 11 years ago
parent 85be0c06bb
commit 5f435c7c8a

@ -20,6 +20,10 @@
init = ->
document.removeEventListener 'DOMContentLoaded', init, false
app.init()
if document.body
app.init()
else
setTimeout(init, 42)
document.addEventListener 'DOMContentLoaded', init, false

Loading…
Cancel
Save