Skip to content

Commit

Permalink
Releasing fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
joakimk committed May 22, 2012
1 parent 734bd08 commit 381721a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/macruby-docs.stable.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,14 @@ if (!window.in_tests) {
var check;
$.noConflict();
check = function() {
var className, selector;
var className, selector, titleParts;
try {
className = jQuery("#pageTitle", window.parent.frames[0].document).html().split(" ")[0];
titleParts = jQuery("#pageTitle", window.parent.frames[0].document).html().split(" ");
if (titleParts[0] === "Deprecated") {
className = titleParts[1];
} else {
className = titleParts[0];
}
if (jQuery(".declaration .macruby", window.parent.frames[0].document).length > 0) {
return;
}
Expand Down

0 comments on commit 381721a

Please sign in to comment.