Skip to content

Commit

Permalink
Remove debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael S. Klishin committed Nov 10, 2012
1 parent 685d5fd commit 83748e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/javascripts/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jQuery.fn.toc = function () {
each(function(index, el) {
var currentLevel = parseInt(el.tagName[1]);

var text = $(el).text() + " (" + el.tagName + ")";
var text = $(el).text();
var anchor = text.replace(/[^a-zA-Z 0-9]+/g,'').replace(/\s/g, "_").toLowerCase();

$(el).attr('id', anchor);
Expand Down

0 comments on commit 83748e5

Please sign in to comment.