media/jquery/tablesorter-master/js/widgets/widget-resizable.js
File widget-resizable.js
has 330 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*! Widget: resizable - updated 12/13/2017 (v2.29.1) */
/*jshint browser:true, jquery:true, unused:false */
;(function ($, window) {
'use strict';
var ts = $.tablesorter || {};
Function bindings
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindings : function( c, wo ) {
var namespace = c.namespace + 'tsresize';
wo.$resizable_container.children().bind( 'mousedown', function( event ) {
// save header cell and mouse position
var column,
Function init
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function( c, wo ) {
if ( c.$table.hasClass( 'hasResizable' ) ) { return; }
c.$table.addClass( 'hasResizable' );
var noResize, $header, column, storedSizes, tmp,
Function setHandlePosition
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setHandlePosition : function( c, wo ) {
var startPosition,
tableHeight = c.$table.height(),
$handles = wo.$resizable_container.children(),
handleCenter = Math.floor( $handles.width() / 2 );
Function mouseMove
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mouseMove : function( c, wo, event ) {
if ( wo.resizable_vars.mouseXPosition === 0 || !wo.resizable_vars.$target ) { return; }
// resize columns
var column,
total = 0,
Function resizableReset
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ts.resizableReset = function( table, refreshing ) {
$( table ).each(function(){
var index, $t,
c = this.config,
wo = c && c.widgetOptions,