From 6d0647c3508b381e3dec2616faca75d2fd338088 Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 6 Feb 2013 08:05:44 +0000 Subject: * lib/rdoc: Import RDoc 4.0.0.rc.2 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/rdoc.rb | 2 +- lib/rdoc/generator/template/darkfish/js/darkfish.js | 16 +++++++++------- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index a59f5240d6..b7285ffe97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 6 17:05:26 2013 Eric Hodel + + * lib/rdoc: Import RDoc 4.0.0.rc.2 + Mon Feb 4 02:22:49 2013 KOSAKI Motohiro * test/ruby/test_process.rb (test_setsid): ensure to call diff --git a/lib/rdoc.rb b/lib/rdoc.rb index 2cac8be741..1b53421927 100644 --- a/lib/rdoc.rb +++ b/lib/rdoc.rb @@ -64,7 +64,7 @@ module RDoc ## # RDoc version you are using - VERSION = '4.0.0.preview3.1' + VERSION = '4.0.0.rc.2' ## # Method visibilities diff --git a/lib/rdoc/generator/template/darkfish/js/darkfish.js b/lib/rdoc/generator/template/darkfish/js/darkfish.js index 4be722fac3..f26fd45d3a 100644 --- a/lib/rdoc/generator/template/darkfish/js/darkfish.js +++ b/lib/rdoc/generator/template/darkfish/js/darkfish.js @@ -109,13 +109,15 @@ function hookSearch() { function highlightTarget( anchor ) { console.debug( "Highlighting target '%s'.", anchor ); - $("a[name=" + anchor + "]").each( function() { - if ( !$(this).parent().parent().hasClass('target-section') ) { - console.debug( "Wrapping the target-section" ); - $('div.method-detail').unwrap( 'div.target-section' ); - $(this).parent().wrap( '
' ); - } else { - console.debug( "Already wrapped." ); + $("a[name]").each( function() { + if ( $(this).attr("name") == anchor ) { + if ( !$(this).parent().parent().hasClass('target-section') ) { + console.debug( "Wrapping the target-section" ); + $('div.method-detail').unwrap( 'div.target-section' ); + $(this).parent().wrap( '
' ); + } else { + console.debug( "Already wrapped." ); + } } }); }; -- cgit v1.2.3