in src/main/jbake/assets/js/tree.jquery.js [1702:1732]
FolderElement.prototype.close = function(slide) {
var $button, doClose;
if (slide == null) {
slide = true;
}
if (this.node.is_open) {
this.node.is_open = false;
$button = this.getButton();
$button.addClass('jqtree-closed');
$button.html('');
$button.append(this.tree_widget.renderer.closed_icon_element.cloneNode(false));
doClose = (function(_this) {
return function() {
var $li, $span;
$li = _this.getLi();
$li.addClass('jqtree-closed');
$span = _this.getSpan();
$span.attr('aria-expanded', 'false');
return _this.tree_widget._triggerEvent('tree.close', {
node: _this.node
});
};
})(this);
if (slide) {
return this.getUl().slideUp('fast', doClose);
} else {
this.getUl().hide();
return doClose();
}
}
};