gitbook-plugin-toc-toggle
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -38,5 +38,6 @@ require(["gitbook", "jQuery"], function(gitbook, $) { | ||
$(function() { | ||
$(document).on('click', '.chapter span', function(e){ | ||
$(document).on('click', 'span', function(event){ | ||
event.stopPropagation(); | ||
$('li.chapter.active').removeClass('active') | ||
var $active = $(this).closest('.chapter').addClass('active') | ||
var $active = $(event.target).closest('.chapter').addClass('active') | ||
bindEvent($active) | ||
@@ -43,0 +44,0 @@ }) |
{ | ||
"name": "gitbook-plugin-toc-toggle", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "a plugins for gitbook for toc-toggle", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1544
47