codecombat/app/views/core/NotFoundView.coffee

14 lines
409 B
CoffeeScript
Raw Normal View History

RootView = require 'views/core/RootView'
template = require 'templates/core/not-found'
2014-01-03 13:32:13 -05:00
module.exports = class NotFoundView extends RootView
2014-06-30 22:16:26 -04:00
id: 'not-found-view'
2014-01-03 13:32:13 -05:00
template: template
2015-01-08 14:42:42 -05:00
# For some reason, it wasn't really rendering the top bar or doing i18n, so I hacked around it. (#2068.)
afterRender: ->
unless @renderedOnce
_.delay (=> @render?()), 1000
@renderedOnce = true
super()