docs: fix dropdown's closing right away in Firefox

This commit is contained in:
Trent Mick 2011-09-09 09:10:31 -07:00
parent 7225e8d5ee
commit 4131360362
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) {