Merge pull request #12 from trentm/ff-doc-fix

docs: fix dropdown's closing right away in Firefox
This commit is contained in:
Mark Cavage 2011-09-09 09:26:32 -07:00
commit 5afb6ee05a
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ $(function () {
$("#toc a").click(function(event) {
$("#tocbutton").click();
})
$("#tocbutton").click(function() {
$("#tocbutton").click(function(event) {
var target = $("#toc");
if (target.css("display") !== "block") {
$("body").bind("click.tocCloser", function(event) {
@ -35,7 +35,7 @@ $(function () {
$("#api a").click(function(event) {
$("#apibutton").click();
})
$("#apibutton").click(function() {
$("#apibutton").click(function(event) {
var target = $("#api");
if (target.css("display") !== "block") {
$("body").bind("click.apiCloser", function(event) {