open jquery.treeview.js
find
applyClasses:
function(settings, toggler) {
// TODO use event delegation
this.filter(":has(>ul):not(:has(>a))").find(">span").unbind("click.treeview").bind("click.treeview", function(event) {
// don't handle click events on children, eg. checkboxes
if (this == event.target)
toggler.apply($(this).next());
}).add($("a", this)).hoverClass();
and comment toggler.apply($(this).next());
source
share