Showing 100 of 130 total issues
File datatables.js
has 6386 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* This combined file was created by the DataTables downloader builder:
* https://datatables.net/download
*
* To rebuild or modify this file with the latest versions of the included
Function DataTable
has 495 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var DataTable = function ( options )
{
/**
* Perform a jQuery selector action on the table's TR elements (from the tbody) and
* return the resulting jQuery object.
Function _fnScrollDraw
has 169 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnScrollDraw ( settings )
{
// Given that this is such a monster function, a lot of variables are use
// to try and keep the minimised size as small as possible
var
Function _fnCalculateColumnWidths
has 136 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnCalculateColumnWidths ( oSettings )
{
var
table = oSettings.nTable,
columns = oSettings.aoColumns,
Function _fnAddOptionsHtml
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnAddOptionsHtml ( oSettings )
{
var classes = oSettings.oClasses;
var table = $(oSettings.nTable);
var holding = $('<div/>').insertBefore( table ); // Holding element for speed
Function _fnFeatureHtmlTable
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnFeatureHtmlTable ( settings )
{
var table = $(settings.nTable);
// Add the ARIA grid role to the table
Function _fnDraw
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnDraw( oSettings )
{
/* Provide a pre-callback function which can be used to cancel the draw is false is returned */
var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );
if ( $.inArray( false, aPreDraw ) !== -1 )
Function _fnBuildAjax
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnBuildAjax( oSettings, data, fn )
{
// Compatibility with 1.9-, allow fnServerData and event to manipulate
_fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] );
Function _
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_: function ( settings, host, idx, buttons, page, pages ) {
var classes = settings.oClasses;
var lang = settings.oLanguage.oPaginate;
var aria = settings.oLanguage.oAria.paginate || {};
var btnDisplay, btnClass, counter=0;
Function _fnColumnOptions
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnColumnOptions( oSettings, iCol, oOptions )
{
var oCol = oSettings.aoColumns[ iCol ];
var oClasses = oSettings.oClasses;
var th = $(oCol.nTh);
Function _fnGetObjectDataFn
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnGetObjectDataFn( mSource )
{
if ( $.isPlainObject( mSource ) )
{
/* Build an object of get functions, and wrap them in a single call */
Function _fnSetObjectDataFn
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnSetObjectDataFn( mSource )
{
if ( $.isPlainObject( mSource ) )
{
/* Unlike get, only the underscore (global) option is used for for
Function attach
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var attach = function( container, buttons ) {
var i, ien, node, button, tabIndex;
var disabledClass = classes.sPageButtonDisabled;
var clickHandler = function ( e ) {
_fnPageChange( settings, e.data.action, true );
Function _fnGetRowElements
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnGetRowElements( settings, row, colIdx, d )
{
var
tds = [],
td = row.firstChild,
Function _fnAjaxParameters
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnAjaxParameters( settings )
{
var
columns = settings.aoColumns,
columnCount = columns.length,
Function _fnSort
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnSort ( oSettings )
{
var
i, ien, iLen, j, jLen, k, kLen,
sDataType, nTh,
Function __column_selector
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var __column_selector = function ( settings, selector, opts )
{
var
columns = settings.aoColumns,
names = _pluck( columns, 'sName' ),
Function _fnDrawHead
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
{
var i, iLen, j, jLen, k, kLen, n, nLocalTr;
var aoLocal = [];
var aApplied = [];
Function _fnLoadState
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnLoadState ( settings, oInit, callback )
{
var i, ien;
var columns = settings.aoColumns;
var loaded = function ( s ) {
Function loadedInit
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var loadedInit = function () {
/*
* Sorting
* @todo For modularisation (1.11) this needs to do into a sort start up handler
*/