public/js/imagelightbox.js
Function imageLightbox
has 229 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.imageLightbox = function( options )
{
var options = $.extend(
{
selector: 'id="imagelightbox"',
Function loadImage
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadImage = function( direction )
{
if( inProgress ) return false;
direction = typeof direction === 'undefined' ? false : direction == 'left' ? 1 : -1;
File imagelightbox.js
has 271 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
By Osvaldas Valutis, www.osvaldas.info
Available for use under the MIT License
*/
Consider simplifying this complex logical expression. Open
Open
if( direction !== false && ( targets.length < 2 || ( options.quitOnEnd === true && ( ( direction === -1 && targets.index( target ) == 0 ) || ( direction === 1 && targets.index( target ) == targets.length - 1 ) ) ) ) )
{
quitLightbox();
return false;
}
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
return false;