[前][次][番号順一覧][スレッド一覧]

ruby-changes:27050

From: drbrain <ko1@a...>
Date: Wed, 6 Feb 2013 17:05:53 +0900 (JST)
Subject: [ruby-changes:27050] drbrain:r39102 (trunk): * lib/rdoc: Import RDoc 4.0.0.rc.2

drbrain	2013-02-06 17:05:44 +0900 (Wed, 06 Feb 2013)

  New Revision: 39102

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39102

  Log:
    * lib/rdoc:  Import RDoc 4.0.0.rc.2

  Modified files:
    trunk/ChangeLog
    trunk/lib/rdoc/generator/template/darkfish/js/darkfish.js
    trunk/lib/rdoc.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39101)
+++ ChangeLog	(revision 39102)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Feb  6 17:05:26 2013  Eric Hodel  <drbrain@s...>
+
+	* lib/rdoc:  Import RDoc 4.0.0.rc.2
+
 Mon Feb  4 02:22:49 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* test/ruby/test_process.rb (test_setsid): ensure to call
Index: lib/rdoc.rb
===================================================================
--- lib/rdoc.rb	(revision 39101)
+++ lib/rdoc.rb	(revision 39102)
@@ -64,7 +64,7 @@ module RDoc https://github.com/ruby/ruby/blob/trunk/lib/rdoc.rb#L64
   ##
   # RDoc version you are using
 
-  VERSION = '4.0.0.preview3.1'
+  VERSION = '4.0.0.rc.2'
 
   ##
   # Method visibilities
Index: lib/rdoc/generator/template/darkfish/js/darkfish.js
===================================================================
--- lib/rdoc/generator/template/darkfish/js/darkfish.js	(revision 39101)
+++ lib/rdoc/generator/template/darkfish/js/darkfish.js	(revision 39102)
@@ -109,13 +109,15 @@ function hookSearch() { https://github.com/ruby/ruby/blob/trunk/lib/rdoc/generator/template/darkfish/js/darkfish.js#L109
 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( '<div class="target-section"></div>' );
-    } 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( '<div class="target-section"></div>' );
+      } else {
+        console.debug( "Already wrapped." );
+      }
     }
   });
 };

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]