mirror of https://github.com/freeCodeCamp/devdocs
parent
52549891de
commit
38b5513b97
@ -1,8 +0,0 @@
|
|||||||
#= require views/pages/base
|
|
||||||
|
|
||||||
class app.views.KnockoutPage extends app.views.BasePage
|
|
||||||
prepare: ->
|
|
||||||
for el in @findAll('pre')
|
|
||||||
language = if el.innerHTML.indexOf('data-bind="') > 0 then 'markup' else 'javascript'
|
|
||||||
@highlightCode el, language
|
|
||||||
return
|
|
Loading…
Reference in new issue