Skip to content
Permalink
Browse files

Minor source code updates to keep ESLint happy

  • Loading branch information...
stefangabos committed Aug 6, 2018
1 parent 8a62d3f commit 1ab2255586b82f03f2882015b39426abf6024f8f
Showing with 33 additions and 37 deletions.
  1. +1 −1 dist/zebra_accordion.min.js
  2. +16 −18 dist/zebra_accordion.src.js
  3. +16 −18 src/zebra_accordion.src.js

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -311,9 +311,7 @@
$this = $(this),

// the event that should trigger tabs' expansion/collapse
event = !plugin.settings.collapsible && plugin.settings.toggle_on_mouseover ?
'mouseover' :
'click';
event = !plugin.settings.collapsible && plugin.settings.toggle_on_mouseover ? 'mouseover' : 'click';

// get some of the element's CSS properties
// needed to correctly expand/collapse the block
@@ -552,25 +550,25 @@
// ...using the speed as indicated in the settings
}, (noFx ? 0 : plugin.settings.hide_speed),

// and once the animation is complete
function() {

// if a callback function needs to be called after closing the tab
if (plugin.settings.onClose && typeof plugin.settings.onClose === 'function')

// execute the callback function
plugin.settings.onClose(index, $title, $block);
// and once the animation is complete
function() {

// set some of tab element's CSS properties
$block.css({
display: 'none',
visibility: 'visible',
borderTopWidth: block.borderTopWidth,
borderBottomWidth: block.borderBottomWidth
});
// if a callback function needs to be called after closing the tab
if (plugin.settings.onClose && typeof plugin.settings.onClose === 'function')

// execute the callback function
plugin.settings.onClose(index, $title, $block);

// set some of tab element's CSS properties
$block.css({
display: 'none',
visibility: 'visible',
borderTopWidth: block.borderTopWidth,
borderBottomWidth: block.borderBottomWidth
});

});

}

};
@@ -311,9 +311,7 @@
$this = $(this),

// the event that should trigger tabs' expansion/collapse
event = !plugin.settings.collapsible && plugin.settings.toggle_on_mouseover ?
'mouseover' :
'click';
event = !plugin.settings.collapsible && plugin.settings.toggle_on_mouseover ? 'mouseover' : 'click';

// get some of the element's CSS properties
// needed to correctly expand/collapse the block
@@ -552,25 +550,25 @@
// ...using the speed as indicated in the settings
}, (noFx ? 0 : plugin.settings.hide_speed),

// and once the animation is complete
function() {

// if a callback function needs to be called after closing the tab
if (plugin.settings.onClose && typeof plugin.settings.onClose === 'function')

// execute the callback function
plugin.settings.onClose(index, $title, $block);
// and once the animation is complete
function() {

// set some of tab element's CSS properties
$block.css({
display: 'none',
visibility: 'visible',
borderTopWidth: block.borderTopWidth,
borderBottomWidth: block.borderBottomWidth
});
// if a callback function needs to be called after closing the tab
if (plugin.settings.onClose && typeof plugin.settings.onClose === 'function')

// execute the callback function
plugin.settings.onClose(index, $title, $block);

// set some of tab element's CSS properties
$block.css({
display: 'none',
visibility: 'visible',
borderTopWidth: block.borderTopWidth,
borderBottomWidth: block.borderBottomWidth
});

});

}

};

0 comments on commit 1ab2255

Please sign in to comment.
You can’t perform that action at this time.