in themes/kube/static/js/kube.js [1016:1037]
close: function(e)
{
if (e)
{
var $el = $(e.target);
var isTag = ($el[0].tagName === 'A' || $el[0].tagName === 'BUTTON');
if (isTag && $el.closest('.offcanvas').length !== 0 && !$el.hasClass('close'))
{
return;
}
e.preventDefault();
}
if (this.isOpened())
{
this.utils.enableBodyScroll();
this.callback('close');
this.pullBody();
this.$target.animation(this.opts.animationClose, $.proxy(this.onClosed, this));
}
},