Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Honor URL hash to display instance property description
Browse files Browse the repository at this point in the history
Co-Authored-By: Antonio Scandurra <[email protected]>
  • Loading branch information
jasonrudolph and Antonio Scandurra committed Jun 27, 2019
1 parent a9df28e commit 8e119a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions assets/javascripts/api-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
return false;
});

$(document).ready(function() {
if (window.location.hash) {
toggleApiEntry(window.location.hash);
}
});

$(window).on("hashchange", function() {
toggleApiEntry(window.location.hash);
});

function toggleApiEntry(apiEntryId) {
const entry = $(apiEntryId);
const extendedContainer = entry.parents(".extended-methods-container");
Expand Down

0 comments on commit 8e119a3

Please sign in to comment.