Showing 3 of 13 total issues
Function slidebars
has 225 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.slidebars = function(options) {
// ----------------------
// 001 - Default Settings
Function animate
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function animate(object, amount, side) {
// Choose selectors depending on animation style.
var selector;
if (object.hasClass('sb-style-push')) {
Consider simplifying this complex logical expression. Open
Open
if (side === 'left' && $left && rightActive || side === 'right' && $right && leftActive) { // It's open, close it, then continue.
close();
setTimeout(proceed, 400);
} else { // Its not open, continue.
proceed();