doc/api/js/jquery.dotdotdot-1.5.9.js
File jquery.dotdotdot-1.5.9.js
has 520 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery dotdotdot 1.5.9
*
* Copyright (c) 2013 Fred Heusschen
* www.frebsite.nl
Function dotdotdot
has 203 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.dotdotdot = function( o )
{
if ( this.length == 0 )
{
if ( !o || o.debug !== false )
Function bind_events
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$dot.bind_events = function()
{
$dot.bind(
'update.dot',
function( e, c )
Function ellipsisElement
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ellipsisElement( $e, $d, $i, o, after )
{
var isTruncated = false,
e = $e[ 0 ];
Function watch
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$dot.watch = function()
{
$dot.unwatch();
if ( opts.watch == 'window' )
{
Function ellipsis
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ellipsis( $elem, $d, $i, o, after )
{
var $elements = $elem.contents(),
isTruncated = false;
Function children
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function children( $elem, o, after )
{
var $elements = $elem.children(),
isTruncated = false;
Function ellipsis
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function ellipsis( $elem, $d, $i, o, after )
Function ellipsisElement
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function ellipsisElement( $e, $d, $i, o, after )
Avoid too many return
statements within this function. Open
Open
return false;