From bffabec8a66a81126de270ba83423cb841bddad2 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 23 Jul 2017 10:42:50 -0400 Subject: [PATCH] Simplify rdoc code highlighting --- assets/javascripts/views/pages/rdoc.coffee | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/assets/javascripts/views/pages/rdoc.coffee b/assets/javascripts/views/pages/rdoc.coffee index 0affac07..f5eb32dd 100644 --- a/assets/javascripts/views/pages/rdoc.coffee +++ b/assets/javascripts/views/pages/rdoc.coffee @@ -1,14 +1,9 @@ -#= require views/pages/base +#= require views/pages/simple -class app.views.RdocPage extends app.views.BasePage +class app.views.RdocPage extends app.views.SimplePage @events: click: 'onClick' - prepare: -> - @highlightCode @findAll('pre.ruby'), 'ruby' - @highlightCode @findAll('pre.c'), 'clike' - return - onClick: (event) -> return unless event.target.classList.contains 'method-click-advice' $.stopEvent(event)