MCPcopy Create free account
hub / github.com/codecombat/codecombat / afterRender

Method afterRender

app/views/AboutView.js:63–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 }
62
63 afterRender () {
64 super.afterRender(...arguments)
65 this.$('#fixed-nav').affix({
66 offset: {
67 top () {
68 return $('#nav-container').offset().top
69 }
70 }
71 })
72 // TODO: Maybe cache top value between page resizes to save CPU
73 $('body').scrollspy({
74 target: '#nav-container',
75 offset: 150
76 })
77 this.$('#screenshot-lightbox').modal()
78
79 return this.$('#screenshot-carousel').carousel({
80 interval: 0,
81 keyboard: false
82 })
83 }
84
85 afterInsert () {
86 super.afterInsert()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected