.on('click.zf.accordion', function(e) {
e.preventDefault();
_this.toggle($tabContent);
- }).on('keydown.zf.accordion', function(e){
+ }).on('keydown.zf.accordion', function(e) {
Keyboard.handleKey(e, 'Accordion', {
toggle: function() {
_this.toggle($tabContent);
});
}
});
- if(this.options.deepLink) {
+ if (this.options.deepLink) {
$(window).on('hashchange', this._checkDeepLink);
}
}
console.info('Cannot toggle an accordion that is disabled.');
return;
}
- if($target.parent().hasClass('is-active')) {
+ if ($target.parent().hasClass('is-active')) {
this.up($target);
} else {
this.down($target);
_destroy() {
this.$element.find('[data-tab-content]').stop(true).slideUp(0).css('display', '');
this.$element.find('a').off('.zf.accordion');
- if(this.options.deepLink) {
+ if (this.options.deepLink) {
$(window).off('hashchange', this._checkDeepLink);
}
updateHistory: false
};
-export {Accordion};
+export { Accordion };