Unified · Split
| @@ -50,11 +50,11 @@ class app.views.EntryPage extends app.View · 49 unmodified lines | |||
| 50 | @clipBoardLink.className = '_pre-clip' | 50 | @clipBoardLink.className = '_pre-clip' |
| 51 | @clipBoardLink.title = 'Copy to clipboard' | 51 | @clipBoardLink.title = 'Copy to clipboard' |
| 52 | @clipBoardLink.tabIndex = -1 | 52 | @clipBoardLink.tabIndex = -1 |
| 53 | el.appendChild(@clipBoardLink.cloneNode()) for el in @el.querySelectorAll('pre') | 53 | el.appendChild(@clipBoardLink.cloneNode()) for el in @findAllByTag('pre') |
| 54 | return | 54 | return |
| 55 | 55 | ||
| 56 | polyfillMathML: -> | 56 | polyfillMathML: -> |
| 57 | return unless window.supportsMathML is false and !@polyfilledMathML and @find('math') | 57 | return unless window.supportsMathML is false and !@polyfilledMathML and @findByTag('math') |
| 58 | @polyfilledMathML = true | 58 | @polyfilledMathML = true |
| 59 | $.append document.head, """<link rel="stylesheet" href="#{app.config.mathml_stylesheet}">""" | 59 | $.append document.head, """<link rel="stylesheet" href="#{app.config.mathml_stylesheet}">""" |
| 60 | return | 60 | return |