Showing 169 of 403 total issues
Function renderer
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ContextMenu.prototype.renderer = function(instance, TD, row, col, prop, value, cellProperties){
var contextMenu = this;
var item = instance.getData()[row];
var wrapper = document.createElement('DIV');
Function Autofill
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Autofill(instance) {
this.instance = instance;
this.addingStarted = false;
var $document = $(document),
Function cellMethodLookupFactory
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Handsontable.helper.cellMethodLookupFactory = function (methodName, allowUndefined) {
allowUndefined = typeof allowUndefined == 'undefined' ? true : allowUndefined;
return function cellMethodLookup (row, col) {
Function getCellMeta
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.getCellMeta = function (row, col) {
var prop = datamap.colToProp(col)
, cellProperties;
row = translateRowIndex(row);
Function applyChanges
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function applyChanges(changes, source) {
var i = changes.length - 1;
if (i < 0) {
return;
Function addCommentsActionsToContextMenu
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addCommentsActionsToContextMenu = function (defaultOptions) {
var instance = this;
if (!instance.getSettings().comments) {
return;
}
Function bindManualColumnWidthEvents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var bindManualColumnWidthEvents = function () {
var instance = this;
var dblclick = 0;
var autoresizeTimeout = null;
Function _executeBucket
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PluginHookClass.prototype._executeBucket = function (bucket, instance, key, p1, p2, p3, p4, p5, p6) {
Function _runBucket
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PluginHookClass.prototype._runBucket = function (bucket, instance, key, p1, p2, p3, p4, p5, p6) {
Function resetFixedPosition
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
WalkontableVerticalScrollbarNative.prototype.resetFixedPosition = function () {
if (!this.instance.wtTable.holder.parentNode) {
return; //removed from DOM
}
var elem = this.clone.wtTable.holder.parentNode;
Function reduce
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Array.prototype.reduce = function (callback, opt_initialValue) {
'use strict';
if (null === this || 'undefined' === typeof this) {
// At the moment all modern browsers, that support strict mode, have
Function keydownListener
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.keydownListener = function (event) {
var isCtrlDown = false;
if (event.metaKey) { //mac
isCtrlDown = true;
}
Function name
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
name: function () {
var div = document.createElement('div'),
button = document.createElement('button'),
xButton = button.cloneNode(true),
tButton = button.cloneNode(true),
Function selectCell
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.selectCell = function (row, col, endRow, endCol, scrollToCell) {
if (typeof row !== 'number' || row < 0 || row >= instance.countRows()) {
return false;
}
if (typeof col !== 'number' || col < 0 || col >= instance.countCols()) {
Function bindManualRowHeightEvents
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var bindManualRowHeightEvents = function () {
var instance = this,
autoresizeTimeout = null,
dblclick = 0;
Function isVisible
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Handsontable.Dom.isVisible = function (elem) {
//fast method according to benchmarks, but requires layout so slow in our case
/*
if (!Handsontable.Dom.hasOffsetParent(elem)) {
return false; //fixes problem with UI Bootstrap <tabs> directive
Function WalkontableDebugOverlay
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WalkontableDebugOverlay(instance) {
this.instance = instance;
this.init();
this.clone = this.makeClone('debug');
this.clone.wtTable.holder.style.opacity = 0.4;
Function beforeInit
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.beforeInit = function () {
var instance = this;
instance.autoColumnWidths = [];
if (instance.getSettings().autoColumnSize !== false) {
Function init
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.init = function (source) {
var instance = this;
var manualRowMoveEnabled = !!(instance.getSettings().manualRowMove);
Function offset
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Handsontable.Dom.offset = function (elem) {
if (this.hasCaptionProblem() && elem.firstChild && elem.firstChild.nodeName === 'CAPTION') {
//fixes problem with Firefox ignoring <caption> in TABLE offset (see also Handsontable.Dom.outerHeight)
//http://jsperf.com/offset-vs-getboundingclientrect/8
var box = elem.getBoundingClientRect();